I'm using xampp to install drupal on my computer. I'm getting this error message:

Failed to connect to your database server. The server reports the following message: SQLSTATE[28000] [1045] Access denied for user 'my_username'@'localhost' (using password: YES).

I've done an exhaustive search trying to get past this. These are the suggestions I found. I've tried changing localhost to 127.0.0.1 I've tried installing a new database and user Neither of these are working.

Thanks for any help.

Jean Fisher

Comments

kscheirer’s picture

That error is Drupal not being able to connect to the mysql database - the username/password combo Drupal is using is getting rejected.

I haven't used xampp in a while, but if I remember right, it sets up mysql with only 1 user, named "root" with no password. Check your settings.php file.

edotjelek’s picture

It worked well. I'm using drupal 7.12 and xampp 1.7.4

bunch of thanx!

jscoble’s picture

What is the database set in the 'driver' line in your settings.php file's $databases array?

If its mysqli, try changing it to mysql