当前位置: 移动技术网 > IT编程>数据库>Mysql > 本地安装Mysql后,navicat链接异常:Clinet dose not support authentication protocol request by server ; consider upgrading MySQL client

本地安装Mysql后,navicat链接异常:Clinet dose not support authentication protocol request by server ; consider upgrading MySQL client

2019年05月18日  | 移动技术网IT编程  | 我要评论

第一步:首先通过cmd进入mysql

  在命令窗口 输入:mysql -u root -p;

 

第二步:更改加密方式 

  mysql> alter user 'root'@'localhost' identified by 'password' password expire never;
  query ok, 0 rows affected (0.10 sec)

 

第三步:更改密码

  mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
  query ok, 0 rows affected (0.35 sec)
  这个密码是navicat链接mysql 的密码;
 
第四步:刷新
  mysql> flush privileges;
  query ok, 0 rows affected (0.28 sec)
 
第五步:重新连接navicat,输入第三步设置的密码。
 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网