Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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've just installed WAMP and tried to change root password. The cmd shows the below error. How to fix?


C:\wamp\bin\mysql\mysql5.5.24\bin>mysqladmin -uroot PASSWORD root


mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
share|improve this question
Did you already have a password or was it blank when setting up? – random Sep 8 '12 at 13:58
I think it's blank because I've just installed it – Emerald214 Sep 8 '12 at 14:07
up vote 2 down vote accepted
C:\wamp\bin\mysql\mysql5.5.24\bin\mysqladmin -u root password NEWPASSWORD


c:\wamp\bin\mysql\mysql5.5.24\bin>mysqladmin --help
  -u, --user=name     User for login if not current user.
  password [new-password] Change old password to new-password in current format

Another solution:

share|improve this answer
@Emerald214 is it work for you yes/no? Accept it or post comment it doesn't work.. – Peter Sep 9 '12 at 18:08

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.