Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using The Same Database!


babakm5

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

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:

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 3 weeks later...
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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...