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

I have a fix for the socket problem. Just ad in your database configuration a new parameter

PHP Code:
'socket'   => '/tmp/mysql.sock'// if no socked uses set it to NULL 

Then you have to make a small change in the core mysqli driver under /system/database/mysqli/mysqli_driver.php in the first method db_connect() a the end:

PHP Code:
return $mysqli->real_connect($hostname$this->username$this->password$this->database$port$this->socket$client_flags

But remember it is not a good idea to change the core files, but for you to test an untill we have fixed this topic it could be a temporary help.

Reply


Messages In This Thread
RE: Connecting CI to TWO different DB on localhost - by Rufnex - 12-16-2014, 02:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB