Yesterday I found the need to change the password for MySQL (using WAMP SERVER) and realised that other people might need to do the same. So, follow these steps to change your password for MySQL when using WAMP Server.
SET PASSWORD FOR root@localhost=PASSWORD('AnyPasswordYouLike');
then press Enter (Replace “AnyPasswordYouLike” with a password of your choice)Now we need to update the config file for PHPMyAdmin to prevent you from getting the following error:
To do this, follow these steps:
It may be necessary to change the password that you set. Doing this is quite easy.
UPDATE mysql.user
SET Password = PASSWORD('newPassword')
WHERE User='root';
Flush Privileges;
Great job guys/gals. Now remember to use your password when accessing your MySQL databases.
Tags: mysql, phpmyadmin, wamp