L8FtUWWzLB!<
casa1234
1.打开命令行小黑屏,进入MySQL的bin目录,然后输入mysql -u root -p,输入密码
2.然后输入
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则 (这行我没有写,不过貌似也可以)
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码
FLUSH PRIVILEGES; #刷新权限