Welcome Guest, Not a member yet? Register   Sign In
multiple database connections postgresql
#5

[eluser]Frank Wong[/eluser]
I thought you were trying to connect to multiple databases at the same time. Since you are just connection to one and you are changing
Code:
$active_group = 'desired_db_config';
everything should work with
Code:
$this->load->database();

One thing that could be happening is the pconnect setting in your config. Try setting that to false. If you are switching back and forth with database that is the same host, user, and pass, it might just an existing connection. In your case, it would connect to the wrong database.


Messages In This Thread
multiple database connections postgresql - by El Forum - 06-14-2011, 01:20 AM
multiple database connections postgresql - by El Forum - 06-14-2011, 03:38 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 05:41 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 06:18 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 06:38 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 07:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB