Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Connection Problems
#6

[eluser]atompkins[/eluser]
Thanks for the help guys - you were absolutely correct, the connection is being reused.

But there is a way in CodeIgniter to prevent that - in the database config you can simply set 'pconnect' to FALSE and the database driver class will use 'db_connect' instead of 'db_pconnect'.

Code:
$db['Movie']['pconnect'] = FALSE;

I made the change and the problem has gone away.

- Adam


Messages In This Thread
Multiple Database Connection Problems - by El Forum - 12-02-2009, 05:50 PM
Multiple Database Connection Problems - by El Forum - 12-03-2009, 01:45 AM
Multiple Database Connection Problems - by El Forum - 12-03-2009, 10:38 AM
Multiple Database Connection Problems - by El Forum - 12-03-2009, 01:09 PM
Multiple Database Connection Problems - by El Forum - 12-03-2009, 01:14 PM
Multiple Database Connection Problems - by El Forum - 12-03-2009, 04:38 PM
Multiple Database Connection Problems - by El Forum - 12-03-2009, 06:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB