Create Multiple Database Connection in Codeigniter

In this post we have explained about how to create multiple database connection in codeigniter. Please do the following changes in your files. Config.php: Change the below following things in your config.php $active_group = ‘default’; $active_record = TRUE; $db[‘default’][‘hostname’] = ‘localhost’; $db[‘default’][‘username’] = ‘root’; $db[‘default’][‘password’] = ”; $db[‘default’][‘database’] = ‘demo_users’; $db[‘default’][‘dbdriver’] = ‘mysql’; $db[‘default’][‘dbprefix’] = ”; … Continue reading Create Multiple Database Connection in Codeigniter