Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to your database server using the provided settings.
#1

[eluser]Ivar89[/eluser]
I'm getting this error:
Unable to connect to your database server using the provided settings.
My database setting ARE correct it works on every other page and its autoloaded.
Not sure if you guys wanna see any code about the page since it's a database error, anyway:
autoload:
Code:
$autoload['libraries'] = array('database', 'session', 'form_validation', 'email');
Database
Code:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "********";
$db['default']['database'] = "charlois";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
http://localhost/portfolio/ is where I get the error but http://localhost/portfolio/edit/98 does work
- no htaccess problem
- no fault in retrieving data from database
- no spelling errors
- No clue what the F is wrong...

PS: its a really small own made cms.




Theme © iAndrew 2016 - Forum software by © MyBB