Welcome Guest, Not a member yet? Register   Sign In
$db['default']['pconnect'] = TRUE; and too many database connections error
#2

[eluser]Jaketoolson[/eluser]
Your question solved my problem, which in turn, may help you with your decision.

Within my CI application, I have 2 databases I use and need to connect to. One database (db1) holds tables pertaining to user user accounts and other site schema items. The other database (db2) holds data used to generate reports.

I am dynamically creating my menu system using a library. No matter what I tried, I couldn't get my library to switch over to the correct database when called within my default controller, as it kept reverting to db2. I then switched pconnect to FALSE and everything works just fine.


Messages In This Thread
$db['default']['pconnect'] = TRUE; and too many database connections error - by El Forum - 03-05-2011, 11:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB