1、终端登陆MySQL
$ mysql -u root -p
password #登入mysql
2、修改账户密码加密规则并更新用户密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456' PASSWORD EXPIRE NEVER; #修改加密规则
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; #更新一下用户的密码
3、刷新权限并重置密码
FLUSH PRIVILEGES; #刷新权限
4、再重置下密码:
alter user 'root'@'localhost' identified by '123456';
- Mysql Authentication caching_sha password Navicatauthentication caching_sha password navicat mysql authentication caching_sha password authentication caching_sha password caching authentication caching_sha password错误 authentication caching_sha navicate password caching_sha password caching navicat 39 failed mysql_native_password authentication password runtimeerror cryptography caching_sha caching_sha插件password身份 caching_sha password错误caching