Forgot to modify MySQL password under Windows

Source: Internet
Author: User
  1. Locate the MySQL configuration file My.ini
  2. Add Skip-grant-tables under [mysqld]
  3. Win+r shortcut key Input cmd then enter the command net stop MySQL finally make the directory point to the bin directory in the MySQL installation directory
  4. Input command mysqld-nt--skip-grant-tables (local test hint a waring doesn't seem to affect)
  5. Win+r the shortcut key again enter CMD and enter the command mysql-u root return, this time should enter MySQL
  6. Select Database user mysql;
  7. Change Password: Update user set Password=password ("New password") where user= ' root '; Note The uppercase password is encrypted with the new password three words replaced with their own password
  8. Kill the MYSQLD-NT process in Task Manager
  9. Delete the content added in the second item
  10. Restart MySQL
  11. Enter new password detection.

Forgot to modify MySQL 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.