MySQL Forgot Password Solution

Source: Internet
Author: User

First step: Turn off the MySQL service.
Step two: Open the DOS window and enter the directory where Mqsql is installed: C:\Program files\mysql\mysql Server 5.6\bin
Step three: In the Command window, enter: Mysqld--skip-grant-tables enter. --skip-grant-tables means skipping permission table authentication when starting the MySQL service.

Occurs because the MySQL service is not turned off. Turn off service re-enter command.

and kill-term mysqld
Fourth step: Open a DOS window again (because the DOS window just can't move), go to ... \mysql\bin directory.


Fifth step: Enter MySQL return, if successful, the MySQL prompt > will appear.
Sixth step: Connection rights database: use MySQL;. Change Password: Update user set Password=password ("Dbdh") where user= "root";


Seventh Step: Refresh Permissions

Flush privileges;
Eighth step: Quit quit.

Nineth Step: Kill mysqld Process start MySQL re-enter the user name and password.

Copyright for all, if you need to reprint please indicate the source.

Http://www.cnblogs.com/northeastTycoon/p/5521683.html

MySQL Forgot Password Solution

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.