(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?