database.php:
$db[\'default\'][\'hostname\'] = \"192.168.2.104\"; $db[\'default\'][\'username\'] = \"webuser\"; $db[\'default\'][\'password\
You don’t need to create separate database configurations if you only need to use a different database on the same connection. You can switch to a different database when you need to, like this:
$this->db->db_select($database2_name);
CodeIgbiter User Guide