wrong reason
1045 Meaning: The user name or password is incorrect
Solution
reset Password
1, no reset cryptographic methods my.ini
- MySQL data files in the deleted directory folder, re-initialize and generate a temporary password, the command line
mysqld --initialize --console;
Note that generates a tempotary password
-
Restart the mysql service
A.net start mysql
B. Computer Management - Services and Applications - Services - MySQL - click on the "Start" -
Command line login MySQL, mysql -u using the temporary password
root
-ptempotarypassword
enter a user name and a temporary password -
Before the formal implementation of sql statement, you need to modify out temporary password generated
ALTER user 'root'@'localhost' IDENTIFIED BY 'new password';
- The new password log on again
Second, the method of directly modifying my.ini [ Reference Site ]
Three, my.ini file [ Reference Site ]