Take the 2-minute tour ×

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
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

1 Answer 1

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
  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


