navicat 连接 mysql 出现Client does not support authentication protocol requested by server解决方案

连接mysql:

  • 进入到mysql的bin目录里
  • mysql -uroot -p
  • status显示mysql的详细信息

今天安装了navicat 和 mysql,结果最后在navicat中连接mysql时,出现了如下错误提示:

Client does not support authentication protocol requested by server; consider upgrading MySQL client

网上找了如下方法:

其一:

其二:

上面some_user、some_host、newpwd按自己实际情况修改

但是自己尝试了之后依旧有错误提示,最后尝试了如下方法恢复正常:

root是用户名,localhost是ip地址127.0.0.1都是特指本机,mysql_native_password是旧的密码验证机制,831015是密码,最后别忘了分号;

最后问题解决:

原文地址:https://www.cnblogs.com/xiaoneng/p/10594218.html