navicat连接mysql80报caching_sha2_password错误
时间:2019-09-28 21:00:48
收藏:0
阅读:285
mysql80连接navicat
两种修改mysql密码加密方式的方法
修改配置文件
default_authentication_plugin=caching_sha2_password 修改为:
default_authentication_plugin=mysql_native_password
使用命令进行更改
alter USER ‘root‘@‘localhost‘ identified BY ‘password‘ PASSWORD EXPIRE NEVER; #修改加密规则
alter USER ‘root‘@‘localhost‘ identified WITH mysql_native_password BY ‘password‘; #更新一下用户的密码alter user ‘root‘@‘localhost‘ identified by ‘你自己的密码‘; #再重置下密码:
flush privileges; #刷新权限
原文:https://www.cnblogs.com/turboni/p/11604694.html
评论(0)