Welcome Guest, Not a member yet? Register   Sign In
Database connection problem
#1

[eluser]mesha85[/eluser]
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.

Quote: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
Code:
$db['default']['db_debug'] = TRUE;
to
Code:
$db['default']['db_debug'] = FALSE;

i get error

Quote:No database selected.

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

#2

[eluser]Aken[/eluser]
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.
#3

[eluser]mesha85[/eluser]
Yeah it was host name :-P i had it with the domain ip first but when i changed it localhost it worked, Thanks alot! Wink




Theme © iAndrew 2016 - Forum software by © MyBB