Codeigniter and MySQL
Codeigniter by default assumes that we don't need databases.
So we need to configure the database connection.
In config/autoload.php we add database library
$autoload['libraries'] = array('database');
Then in config/database.php we do the configurations with the details of database and hosts
$db['default'] = array( 'dsn' => '', ...