navicat 连接 mysql 解决出现client does not support authentication protocol requested by server的问题

MySQL8换了加密插件,数据库管理客户端都来不及更新,连接方式缺乏sha2的加密方式
首先第一步,

UPDATE mysql.user SET plugin = 'mysql_native_password';

然后,

USE mysql; 
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘你的密码’; 

注意:root这个地方是你的用户名,一般默认是root

完美解决!

猜你喜欢

转载自www.cnblogs.com/zyl-Tara/p/9429136.html