database.php:
$db[\'default\'][\'hostname\'] = \"192.168.2.104\";
$db[\'default\'][\'username\'] = \"webuser\";
$db[\'default\'][\'password\
I fix the problem changing the DB_driver.php on the framework.
In this function I add $this->db_select(); and you never lose your connection again when working with 2 databases.
function simple_query($sql)
{
if ( ! $this->conn_id)
{
$this->initialize();
}
$this->db_select();
return $this->_execute($sql);
}