Solution to the error nr.1045 problem during Mysql installation _mysql

Source: Internet
Author: User

The problem with access denied for user ' root ' @localhost ' (using Password:no) occurs when we install MySQL under Windows, because MySQL was previously installed on your machine, or this Install a new password at one time, enter the last step of the application for some reason card out or because the service is not started and other reasons that can not be configured successfully, the final result is that the configuration is not successful, password settings have been saved in. So we adjust the service, and so on, after the reconfiguration, we will find that when the password is set, an extra old password input box. In fact, this is nothing, in the password know, enter the old password to reset the password is not difficult, and the problem is that even if the old password is correct, you still can not complete the configuration, in the last link password Authentication time and error, the reason is the password problem, the old password is incorrect.


Solution:
1. Management Tools---Services to stop the MySQL service.
2. Control Panel---Uninstall MySQL, delete C:\Program files\mysql directory.
3. This is the most critical step, only to do the first two steps, the password is still not modified, because MySQL also has files, that is, in C:\Documents and Settings\All Users\Application Data ( Application data is a hidden folder inside the MySQL folder, this file is not clear is the MySQL reload the original source of the old password. The MySQL folder is then deleted.
4. Check the C:\WINDOWS directory to see if there are my.ini files, delete them
5. Heky_local_machine,software,mysql deletion in the registration list
hkey_local_machine\system\controlset001\services\eventlog\application\mysql Directory deletion
Hkey_local_machine\system\controlset002\services\eventlog\application\mysql Directory Deletion
Hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql Directory Deletion

By completing the steps above, you can reinstall MySQL and make a new configuration.

The above is to solve the MySQL installation error occurred in the way, I hope to help you learn, but also hope that we support cloud habitat community.

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.