MySQL app continuous update 2 reprint

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.