The database.php file contains all the information to connect to a database. A Database is required for most web application programming. CodeIgniter supported databases are MySQL (4.1+), MySQLi, MS SQL, Postgres, Oracle, SQLite, and ODBC
This config.php file are located under application/config filder or your own custom configuration file. This class is initialized automatically by the system so there is no need to do it manually.