Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi I'm pretty new to the WAMP scene, I've just downloaded WAMP from: http://www.wampserver.com/en/download.php

And got it installed with ease. I've set up a password to MySQL using cmd.exe on Windows (7, 64-bit) using the following command:

mysqladmin -u root -p password "newpassword"

Now when I click the WAMPSERVER icon on my system tray, go to phpmyAdmin I get hit with an Access denied page which states:

MySQL said:

1045 - Access denied for user 'root'@'localhost' (using password: NO)

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

If anyone can help me out that would be magnificent, I pretty much have no knowledge about servers and such, so please bear with me.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

Find your config.inc.php file under the phpMyAdmin installation directory and update the line that looks like this:

$cfg['Servers'][$i]['password']      = 'password';

... to this:

$cfg['Servers'][$i]['password']      = 'newpassword';
share|improve this answer
    
I works!!! THANK YOU SO MUCH! –  user59631 Nov 9 '10 at 5:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.