• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

#12
Ok this seems to work after I edited the core file and added a 'socket' field. Thank you so far for this solution I can work with this until a fix is included into official release.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.