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.