If the problem is just a forgotten password, this will allow you to reset it. However, if you have mixed incompatible databases with versions of MySQL Server, you will have other problems if you have a reset password.
Stop mysql service
wampmanager -> MySQL -> Service -> Stop Service
Edit my.ini file
wampmanager -> MySQL -> my.ini
Locate the [wampmysqld] section in the ini file. Add this line immediately after the [wampmysqld] section [wampmysqld]
skip-grant-tables
Restart the mysql service. wampmanager -> MySQL -> Service -> Start/Resume Service
Open the MySQL console wampmanager -> MySQL -> MySQL Console
Now we move on to reset the password for the root user, of course, this can be used to reset any user. Type the following two commands at the mysql> prompt, each of which has a colon at the end of the line, and press Enter after each line to issue the mysql command.
For MySQL versions up to 5.7.0
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; FLUSH PRIVILEGES;
For versions of MySQL after 5.7.0
UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N' WHERE User = 'root'; FLUSH PRIVILEGES;
Note that the update should report that it has updated more than one row, that is, because there are actually 3 user accounts with the user ID "root" each with a different domain
i.e. 127.0.0.1, localhost and :: 1 *
Now enter "quit" in the mysql promt command to make mysql exist.
Stop mysql wampmanager -> MySQL -> Service -> Stop Service
Edit the file my.ini wampmanager -> MySQL -> my.ini
Find the [wampmysqld] section in the ini file. Remove the skip-grant-tables parameter that we added earlier.
DO NOT leave this parameter in the ini file with its HUGH protective hole.
Restart the mysql service. wampmanager -> MySQL -> Service -> Start/Resume Service