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

(This post was last modified: 12-16-2014, 02:16 AM by mindph.)

Ok, this gives me a warning level
PHP Code:
SeverityWarning

Message
mysql_select_db() expects parameter 2 to be resourceboolean given

Filename
mysql/mysql_driver.php

Line Number
180 

And then fails to select the database

A Database Error Occurred
Unable to select the specified database: db

Looking into the driver it seems that conn_id is not get set to an ID but still false, hence the connection with the socked parameter failed silently (there was no "unable to connect" error).

(When I remove the :/var/run/mysqld/mysqld.sock part from localhost, it works with mysql_driver, but then I still can not specify my sockets)
Reply


Messages In This Thread
RE: Connecting CI to TWO different DB on localhost - by mindph - 12-16-2014, 01:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB