Post by amdev » Tue Apr 26, 2011 11:45 am

If i create muti database with 1 user in phpmyadmin.
How to set Opencart to connect them???



Regards.

ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by Xsecrets » Tue Apr 26, 2011 12:18 pm

opencart only uses one database. It would involve quite a bit of hacking to get it to connect to multiple databases, and I really don't see why in the world you would want to.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by amdev » Tue Apr 26, 2011 12:32 pm

Xsecrets wrote:opencart only uses one database. It would involve quite a bit of hacking to get it to connect to multiple databases, and I really don't see why in the world you would want to.
Thanks Xsecrets so much for quick reply.
Ok , I try for search about "Codeignither connect to multi database" and found
http://codeigniter.com/forums/viewthread/145901/

I think that Opc base on Ci and have a method for implement it.

Regards.

ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by Daniel » Tue Apr 26, 2011 6:06 pm

opencart is not based on code igniter.

why would you want to connect to 2 databases?

to do this you only need to alter the config file.

you can make a new connect when ever yo want.

$new_db = new DB(hostname, username, password);

if you know how to code its easy.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by amdev » Tue Apr 26, 2011 6:52 pm

Daniel wrote:opencart is not based on code igniter.

why would you want to connect to 2 databases?

to do this you only need to alter the config file.

you can make a new connect when ever yo want.

$new_db = new DB(hostname, username, password);

if you know how to code its easy.
Thanks Daniel for reply.

That's right!!!

Solved.

ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by decodeco » Mon Oct 10, 2011 6:21 am

i have finally set my shop up with a reasonable speed but database keep timing out as it says too many connection to data base when i contact my host they told me i am allowed to create as many data base as i want but each data base is allowed 50 connections at one time so i am looking for a way to have open cart connected to multiple data base.please can some one help.

Newbie

Posts

Joined
Mon Oct 10, 2011 6:13 am
Who is online

Users browsing this forum: No registered users and 14 guests