I am a rails developer working with a client who absolutely demands that I fix their old codeigniter site, then port it into rails (don't ask why, that's a whole different question). Anyway, they seem to have two databases listed in their database.php file, one points to a MySQL DB that I can access via godaddy, no prob. The other, which is the one that has all of the functionality(reading, writing editing etc) has a localhost hostname. There is no record of the tables or db names of this second db in their godaddy account and they have no way to contact the developer that wrote this app or any documentation. And coincidentally that is the DB that I need to modify, as well as port over to the new rails app. Am I just totally missing something obvious here?
$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "hostedresource.com";
$db['default']['username'] = "uname";
$db['default']['password'] = "pword";
$db['default']['database'] = "database";
$db['default']['dbdriver'] = "mysqli";
$db['default']['dbprefix'] = "";
$db['default']['active_r'] = TRUE;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
// Admin group (for adding and deleting articles)
$db['admin']['hostname'] = "localhost";
$db['admin']['username'] = "username";
$db['admin']['password'] = "password";
$db['admin']['database'] = "other_database";
$db['admin']['dbdriver'] = "mysql";
$db['admin']['dbprefix'] = "";
$db['admin']['active_r'] = TRUE;
$db['admin']['pconnect'] = TRUE;
$db['admin']['db_debug'] = TRUE;
$db['admin']['cache_on'] = FALSE;
$db['admin']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
and heres the mysql_connect call in one of the task files
$conn = mysql_connect("localhost", "username", "password"); mysql_select_db("other_database");