If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / How to change the database path?

How to change the database path?

Started by ultravires on 20 Mar 2013, 3:51 AM · Views: 1,466

Results 1 to 3 of 3
20 Mar 2013, 3:51 AM
#1
ultravires avatar

ultravires

New Zenner

Join Date:
Mar 2013
Posts:
7
Plugin Contributions:
0

How to change the database path?

I am presently using ZC version 1.3.9 and have 2 websites selling the same things. I want copy 1st site and to the 2nd site and keep everthing the same except change the database. Once it is copied, how do I change the path to the database to point the 2nd database?

20 Mar 2013, 5:29 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to change the database path?

These settings are in the 2 configure.php files

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_CHARSET', 'utf8');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'user_name');
  define('DB_SERVER_PASSWORD', 'password');
  define('DB_DATABASE', 'database_name');

Zen-Venom Get Bitten

21 Mar 2013, 6:10 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: How to change the database path?

You may be n danger of a duplicate content suspension by the SEs. Why not point one site to the other and keep the single database? Seems to have many possibilities for failure with your method.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com