Early in the morning open the Navicat Lite for MySQL client, prompting 1045 Access denied for user ' root ' @ ' localhost ' using password yes, too much power , online search A lot of information, the final problem to be resolved, the following will be a detailed solution to share the process to everyone, hope to meet the same problem compatriots, less detours:
1, open dos into MySQL under the bin directory: I: C:\Program files\mysql\mysql server5.1\bin
2. Stop MySQL service, net stop MySQL
3, in C:\Program files\mysql\mysql server5.1\bin back input:mysqld--defaults-file= "C:\Program files\mysql\ MySQL Server 5.1\my.ini "--console--skip-grant-tables
Specific operations such as:
4. Reopen a DOS window and enter it after C:\Program files\mysql\mysql server5.1\bin: Mysql-root
-P
5, prompt to enter the password, enter the password after enter, enter mysql>
6. Enter under Mysql>:
Mysql>update ssh setpassword=password (' NewPassword ') where user= ' root '
Mysql>flush privileges;
Mysql>quit
Where SSH is the name of the database, instead of its own, if there are multiple databases can be more than one update operation.
The exact operation is as follows:
Windows MySQL Tip: 1045 Access denied for user ' root ' @ ' localhost ' using password Yes