Word – WAMP – Reset Root password on thesql

MySQLpassword-recoverywamp

I'm getting this error: access denied for user 'root'@'localhost' using paswword (NO).

Its a fresh install of wampserver 2.2 32 bit.

Is there a way I can reset the mysql root password?

I have tried using mysqld.exe. –init-file=c:\reset.txt (below are the contents)

PDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
FLUSH PRIVILEGES;

Unfortunately this does not work, windows command prompt just hangs.

Any help would be greatly appreciated.

Thanks

Best Answer

It seems that windows is not reading the HOSTS file properly, as a result only 127.0.0.1 is accepted NOT localhost.

To work around this:

Go to your wamp\apps\phpmyadmin.versionnumber\

Open config.inc.php

Change the localhost to 127.0.0.1

Save and restart all services

Related Question