After installing CodeIgniter we might get below error on the website sayinig:

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 346

In first look it might seems like an mysql connection string problem but its not at the issue with the mysql connection

string it is the issue with the db_debug, now how to solve the issue

for eliminating the issue just edit the "database.php" file which consists of our database connection and search for
and it will be like

$db[‘default’][‘db_debug’] = TRUE change it to $db[‘default’][‘db_debug’] = FALSE
and save the file, after making the changes browse the site and bingo!! the error gone.