Zen Cart Logo
Forums / General Questions / Sharing MYSQL

Sharing MYSQL

Views: 488

Results 1 to 4 of 4
10 Apr 2012, 2:18 PM
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Sharing MYSQL

Is it possible to have two Zencart shops and only one MYSQL? If this has already been asked sorry and can you point me to that thread? Thanks

10 Apr 2012, 3:01 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sharing MYSQL

Yes, you can install Zencart for the first shop, then when you install the second shop, point the installer to the first shop's database, but specify a database table prefix when asked during the installation.

Not sure why you would want to do that, though.

10 Apr 2012, 3:47 PM
#3
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Sharing MYSQL

stevesh:

Yes, you can install Zencart for the first shop, then when you install the second shop, point the installer to the first shop's database, but specify a database table prefix when asked during the installation.

Not sure why you would want to do that, though.

Doing this i assume it save some server space

10 Apr 2012, 4:54 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Sharing MYSQL

I doubt it would save a measurable portion of server space (if it does, you will soon have problems with running out of space), and it will require more processing every time the shops look for information in the database. It would be much cleaner to use separate databases; the only reason I can think of to put them both in one db is if you don't have the ability to make more than one.