Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to your database
#1

[eluser]OregonGold[/eluser]
EDIT:

i just tried something from another post and im getting

Not connected : Access denied for user 'SYSTEM'@localhost (using password: NO)


system?







Hi, just curious if there im missing something here,

Im using wamp on my pc while i learn CI, I just got to the database part and I cant seem to connect.

im getting this error:

A Database Error Occurred

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

Code:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "";
$db['default']['database'] = "mytest";
$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";


autoload.php
Code:
$autoload['libraries'] = array('database');

i noticed there is no Database.php file in th elibraries directory, should there be?
#2

[eluser]bretticus[/eluser]
You wouldn't get that error if you didn't have a mysql client that PHP could hook into.

This is not so much a CodeIgniter issue. You need to setup database privileges properly.

Take a peek at:
http://www.geeklog.net/faqman/index.php?op=view&t=44
Or google "Access denied for user ‘*’@‘*’"




Theme © iAndrew 2016 - Forum software by © MyBB