Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run XAMPP, a few days back i had set up a password for the root password through phpmyadmin I am not able to access phpMyAdmin ever since that moment

I followed help on this link but everything seems fine there (in I even tried unistalling xampp fully, restarting windows and then reinstalling xampp, but still pointing to localhost/phpmyadmin I get the following error

MySQL said: 
Cannot connect: invalid settings. 
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.

I Also tried to reset root password through mysqld.bat as given on mysql's website help but to no avail

Please Help!

share|improve this question
What does a telnet on localhost:3306 output? – Maxwell Aug 14 '09 at 8:43
up vote 1 down vote accepted

Edit the file in the phpmyadmin directory and change ~line 73:

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

Save, and access phpmyadmin again. This will avoid you from having to change the password as stated by Maxwell.

share|improve this answer

You can reset the Mysql password trought the cli by running it with the --skip-grant-tables option, next you'll be able to log in with the root user without a password and issue

UPDATE user SET Password=PASSWORD('newpwd') WHERE User='root';
flush privileges;

Next, restart MySQL normally.

Hope this helps.

share|improve this answer

I have found a fix.

Go to this directory C:\xampp\phpMyAdmin\ and change the following values to whatever is appropriate for you.

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'password'; // which is default setting in xampp server
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.