CodeIgniter Forums
Use different db name in db connectivity file? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Use different db name in db connectivity file? (/showthread.php?tid=17801)



Use different db name in db connectivity file? - El Forum - 04-16-2009

[eluser]Zeeshan Rasool[/eluser]
Hello all,
Can we make this connection changeable so that we change db name each time to make a connection.

Code:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "";
$db['default']['database'] = "db_name";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";



Use different db name in db connectivity file? - El Forum - 04-16-2009

[eluser]TheFuzzy0ne[/eluser]
Sorry, I don't understand the question.