First of all, the input

Open a CMD window, log in to mysql, and refresh the permission table

FLUSH PRIVILEGES;
Copy the code
After I changed the password again to test, just use the following statement
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password you want to set'; ` ` ` can. > > [reference links] (https://blog.csdn.net/whimewcm/article/details/83621358)/personal website (http://47.101.51.245/)Copy the code