MySQL Reset password under Windows

Source: Internet
Author: User

1 the actual operation under Windows is as follows2 3 1Shut down the service by shutting down the running MySQL. 4 5 2. Open the DOS window and go to the Mysql\bin directory. 6 7 3. Entermysqld-- skip-grant-tables Enter. If the message doesn't appear, it's right. 8 9 4to open a DOS window (because the DOS window is no longer moving), go to the Mysql\bin directory. Ten  One 5Input MySQL Enter, if successful, the MySQL prompt will appear> A  - 6. Connection Rights Database> UseMySQL (>is the original cue, do not forget the last semicolon) -  the 6. Change Password:> Update User SetPassword=Password ("123")where User="Root"; (Don't forget the last semicolon) -  - 7. Refresh permissions (required steps)>FlushPrivileges; -  + 8. exit>\q -  + 9Log off the system, then enter, open MySQL, use the username root and just set the new password 123 to login.

Note: Transfer from online

MySQL reset password under Windows

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.