babakm5 Posted June 4, 2007 Share Posted June 4, 2007 Hi All, I have an up and running website but I need/want to change my domain name! how can I use the same database(mysql) when changing my website's name to a new one? I mean, all I want to do is a registering a new domain name and use it for my present website without having to build the whole site again! :) appreciate all the help :) thank you Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 4, 2007 Share Posted June 4, 2007 You just need to edit your two configure files to use the new domain name. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
babakm5 Posted June 5, 2007 Author Share Posted June 5, 2007 You just need to edit your two configure files to use the new domain name. Jack Hi, thank you for responding! :) OK, you mean I do NOT need to change anything on DB_SERVER section for my new domain name? define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'oldDBusername'); define('DB_SERVER_PASSWORD', 'oldDBpass'); define('DB_DATABASE', 'oldDBdatabase'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' thank you Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 5, 2007 Share Posted June 5, 2007 Changing the domain name is not the same as changing hosts. If you just changed your domain name, then nothing with the database should have been affected. If you changed hosts, then you will probably need to edit the database entries. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
babakm5 Posted June 8, 2007 Author Share Posted June 8, 2007 Changing the domain name is not the same as changing hosts. If you just changed your domain name, then nothing with the database should have been affected. If you changed hosts, then you will probably need to edit the database entries. Jack thank you again for responding! :) anyway, how about I intend to keep both websites meaning the old one and a new one BUT with the same database which I used for the old one? is it possible? and are they gonna function seperately or I would have problem with them? thank you :blush: Quote Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2007 Share Posted June 8, 2007 thank you again for responding! :) anyway, how about I intend to keep both websites meaning the old one and a new one BUT with the same database which I used for the old one? is it possible? and are they gonna function seperately or I would have problem with them? thank you :blush: What is trying to be said here is if you change the domain, you are not changing servers. Which means you have the same website, same files, etc. If you wish to keep the old domain, you can redirect it towards the new one. Are you changing servers or just domains? Quote Link to comment Share on other sites More sharing options...
babakm5 Posted June 26, 2007 Author Share Posted June 26, 2007 What is trying to be said here is if you change the domain, you are not changing servers. Which means you have the same website, same files, etc. If you wish to keep the old domain, you can redirect it towards the new one. Are you changing servers or just domains? I am trying to change only the domain! by the way, how does the "picture enlargment" function works on these websites? I mean I have tried to fix that by putting smaller pictures but it didnt enlarge more than the original size and when I switched it to bigger size pictures, it would NOT look good on the website as the pictures are too big in their original sizes before enlargment I mean!!! :( appreciate as usual :) thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.