navicat连接mysql80报caching_sha2_password错误
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; #刷新权限