Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Connections
#2

[eluser]adamBouchard[/eluser]
Hi,

I ran into a similar issue, and found through another post that you need to probably change one of your mysql_pconnect settings to FALSE.

For example, in config/database.php

$db['database1']['hostname'] = "localhost";
$db['database1']['username'] = "username";
$db['database1']['password'] = "password";
$db['database1']['database'] = "database1";
$db['database1']['dbdriver'] = "mysql";
$db['database1']['dbprefix'] = "";
$db['database1']['pconnect'] = TRUE;
$db['database1']['db_debug'] = TRUE;
$db['database1']['cache_on'] = FALSE;


$db['database2']['hostname'] = "localhost";
$db['database2']['username'] = "username";
$db['database2']['password'] = "password";
$db['database2']['database'] = "database2";
$db['database2']['dbdriver'] = "mysql";
$db['database2']['dbprefix'] = "";
$db['database2']['pconnect'] = FALSE;
$db['database2']['db_debug'] = TRUE;
$db['database2']['cache_on'] = FALSE;


Messages In This Thread
Multiple Database Connections - by El Forum - 06-16-2008, 01:49 AM
Multiple Database Connections - by El Forum - 09-26-2008, 04:12 PM
Multiple Database Connections - by El Forum - 09-26-2008, 06:24 PM
Multiple Database Connections - by El Forum - 10-01-2008, 03:32 PM
Multiple Database Connections - by El Forum - 10-01-2008, 04:42 PM
Multiple Database Connections - by El Forum - 10-01-2008, 05:41 PM
Multiple Database Connections - by El Forum - 10-02-2008, 10:38 AM
Multiple Database Connections - by El Forum - 10-02-2008, 04:24 PM
Multiple Database Connections - by El Forum - 10-03-2008, 05:58 AM
Multiple Database Connections - by El Forum - 10-04-2008, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB