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.
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 forand it will be like$db[‘default’][‘db_debug’]
and save the file, after making the changes browse the site and bingo!! the error gone.$db[‘default’][‘db_debug’] = TRUE change it to $db[‘default’][‘db_debug’] = FALSE