If so, solve it by resetting the password.
1. Open cmd as an administrator and switch to the bin directory of MySQL
cd /d E:\mysql-5.6.37-winx64\bin
2. Close the MySQL service:
net stop mysql;
3. Input
mysqld --skip-grant-tables
Enter. (–skip-grant-tables can skip permission table authentication when starting the MySQL service.)
4. Keep this DOS window open, open another DOS window, and enter mysql and press Enter, the MySQL prompt > will appear.
5. Connect to the permission database:
use mysql;
4. Modify the password:
update user set password=password(“root”) where user=“root”;
(Don't forget to add a semicolon at the end).
5. Refresh permissions:
flush privileges;
6. Quit quit;
7. Close another running command line window;
8. Log in with the username root and the new password root you just set
That's it.