MySQL Error nr.1045 workaround

Source: Internet
Author: User
Tags mysql login

Source Address: http://yanshuaijun.2010.blog.163.com/blog/static/362411622011102443056225/ topic: MySQL Error nr.1045 workaround

2011-11-24 16:30:56  | Category: mysql| report | Font Size Subscribe

1. Go to cmd manually stop MySQL service: net stop MySQL.

2. Modify the My.ini file under the 5.1\ directory of the C:\Program files\mysql\mysql Server and add it under [mysqld]
Skip-grant-tables

3. Start the MySQL service in cmd: net start MySQL

4. Open MySQL directly press ENTER to log in with a blank password

5. Quit MySQL, stop MySQL service: net stop MySQL

6, the 2nd step to add the Skip-grant-tables statement deleted

7. Start MySQL service: net start MySQL

8. Open MySQL login with a blank password

9, change the password set password for [email protected]=password (' password '); Password is the password to be set

10, quit MySQL, reconfigure will not appear 1045 error)

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.