Shore Queen Travel
Links: https://www.zhihu.com/question/27334963/answer/266624031
Source: Know
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source. Use the Wamp MySQL console to modify it.
(1) Open Wamp MySQL console, prompt for password, start password is empty, press ENTER directly
(2) Enter "Use MySQL", console prompt "Database changed"
(3) Enter "Update user set Password=password (' Password to be modified ') where user= ' root ';"
General Baidu to is this command, but will prompt error, password unknown and so on;
Cause: After the version update, password becomes authentication_string.
Workaround: Enter "Update user set Authentication_string=password (' Password to be modified ') where user= ' root ';"
At this point, the console prompts "Query ok,xxxxxxxxx"
(4) Last Input "flush privileges", enter
(5) Enter "Quit" and exit.
(6) Under Directory Wamp\apps, locate the "config.inc.php" file under the phpMyAdmin folder,
Modify "$cfg [' Servers '] [$i] [' password '] = '";
For "$cfg [' Servers '] [$i] [' password '] = ' password to be modified ';".
1
2
5 Reset Password required after forgetting password:
(1) In the file D:\wamp\wamp64\bin\mysql\mysql5.7.9 "My.ini" in the "Mysqlid" field at the bottom of the "skip-grant-tables", restart the MySQL service
(2) Re-modify the password again into the MySQL console.
(3) After the password is changed, "Skip-grant-tables" added in "My.ini" is deleted.
(4) Restart the service
MySQL app continuous update 2 reprint