EllisLab text mark
Advanced Search
     
Database connection problem
Posted: 04 November 2012 06:02 PM   [ Ignore ]
Joined: 2012-11-02
3 posts

Hello everyone, i am new to codeigniter i am using amazon EC2 and i just cannot connect to my data base. i get the following error.

A Database Error Occurred

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

Filename: core/Loader.php

Line Number: 347

when i tried to change

$db['default']['db_debug'TRUE

to

$db['default']['db_debug'FALSE

i get error

No database selected.

I am not getting what is wrong, and i am sure my parameters are correct, then why?
any help please??

 

 
Posted: 05 November 2012 02:08 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-28
2435 posts

99% of the time, it means your parameters are wrong. Post up all of your params (less any sensitive passwords and such) if you’re still having difficulty.

 
Posted: 05 November 2012 08:46 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-11-02
3 posts

Yeah it was host name tongue laugh i had it with the domain ip first but when i changed it localhost it worked, Thanks alot! wink