Post by krazy4sales » Sat Aug 25, 2012 12:05 am

Hello,

I wanted to know if it is possible to have 2 opencart share the same data base. The reason I ask this is because I am constantly updated, upgrading, and make changes to my main site. So I was thinking to have to sites share the same database that way the main site is always up and the second site can be a work in progress and than all I have to do is copy the files over to the main site after all the changes.

Or is it better to have the main site with its own database and when it it time to upgrade create a second sub called www.xxx.com/upgrade with its own data base.

Thanks

New member

Posts

Joined
Thu Mar 08, 2012 11:37 pm

Post by rph » Sat Aug 25, 2012 6:17 am

Yes, they can share. You can either manually setup the config files to point to the same database or you can setup the database to be remotely accessible from a different server/local dev environment.

Personally I would say not to do this. Keep your live site and development site strictly segregated. Unless you're doing a lot of table/data changes even an out-of-date copy of your database will be just fine for dev work. Then use a tool like Beyond Compare to sync the together.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by krazy4sales » Sat Aug 25, 2012 10:14 am

@rph thanks for the reply.

New member

Posts

Joined
Thu Mar 08, 2012 11:37 pm
Who is online

Users browsing this forum: No registered users and 101 guests