Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How Do I Change / Move the Database?


parasite

Recommended Posts

Hi There!

 

I have installed oscommerce on my werb server, but need to change the database that it resides on. Is there anyway to move the shop system over to a new database on the same server without editing each individual file with the new database name? The username and password will remain the same, only the name of the database will change.

 

Any help much appreciated! I already tried to search for an answer but couldn't find one, so maybe someone can point me to a previous topic??

 

Cheers,

Armin

Link to comment
Share on other sites

Hi There!

 

I have installed oscommerce on my werb server, but need to change the database that it resides on. Is there anyway to move the shop system over to a new database on the same server without editing each individual file with the new database name? The username and password will remain the same, only the name of the database will change.

 

Any help much appreciated! I already tried to search for an answer but couldn't find one, so maybe someone can point me to a previous topic??

 

Cheers,

Armin

Dont quote me on this but .Rename your data base and save it for later if you want then Install and create your new database server and run your latest db_file from your shops backups folder in mysql.

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Dont quote me on this but .Rename your data base and save it for later if you want then Install and create your new database server and run your latest  db_file from your shops backups folder in mysql.

You should be able to export the mysql database from sql and save it as a text file for later use

 

hope this helps

Link to comment
Share on other sites

Dont quote me on this but .Rename your data base and save it for later if you want then Install and create your new database server and run your latest  db_file from your shops backups folder in mysql.

 

Thanks for the suggestion!

 

I'm wondering if I try what you suggested, will i still need to change the DB login on each of the PHP files that make up OSc?

 

cheers,

Armin

Link to comment
Share on other sites

You should just change the database references in the config files:

catalog/includes/configuration.php

catalog/admin/includes/configure.php

:thumbsup:

 

Thanks everyone for your suggestions! The database change over worked a treat! The only problem I encountered was with phpMyAdmin limiting the amount of data I could upload at any one time.

 

Cheers,

Armin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...