Welcome Guest, Not a member yet? Register   Sign In
Connecting CI to TWO different DB on localhost
#3

(12-11-2014, 03:00 PM)Rufnex Wrote: Just connect to both depend on your database configuration like that


PHP Code:
$db1 $this->load->database('db1'TRUE);
$db2 $this->load->database('db2'TRUE); 

The same was told in the stackoverflow question but...
This does NOT work, because both server instances are connected to different sockets.

My question was "But how can I get CI to use socket '/var/run/mysqld/mysqld2.sock' for db2 while still using mysql.sock for db1?" Or can I connect to the servers using TCP localhost instead?

Can anyone please help me with a solution for that?
Reply


Messages In This Thread
RE: Connecting CI to TWO different DB on localhost - by mindph - 12-14-2014, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB