navicat 连接 mysql 出现Client does not support authentication protocol requested by server解决方案
今天安装了navicat 和 mysql,结果最后在navicat中连接mysql时,出现了如下错误提示:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
解决办法:
在
中依次输入
USE mysql;
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘newpassword’;
FLUSH PRIVILEGES;
注意:root是用户名,localhost是ip地址127.0.0.1都是特指本机,mysql_native_password是旧的密码验证机制,newpassword是密码,单引号‘ ’是英文格式,最后别忘了分号;