As for the other configuration settings you have done for CodeIgniter, the file you need to modify is in /www/codeigniter/application/config
. This time, the file you need to update is database.php
. This file contains all the information necessary for CodeIgniter to connect to your database. Open the file, you will see the options that you must set along with a few other options that you can leave at the default, for now.
$active_group = "default"; $active_record = TRUE; $db['default']['hostname'] = "localhost"; $db['default']['username'] = ""; $db['default']['password'] = ""; $db['default']['database'] = ""; $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"; $db['default']['dbcollat'] = "utf8_general_ci";
The options you must fill in are:
hostname:
The location of your database...