数据库教程:Navicat for MySQL连接出错:1251

window下navicat错误提示:1251-Client does not support authentication protocol requested by server; consider upgrading MySQL client …

平台:window10+mysql-8.0.15-winx64+navicat_trial_11.1.20.0(patchnavicat破解)

错误提示:1251-client does not support authentication protocol requested by server; consider upgrading mysql client

解决步骤:

 

用管理员身份打开cmd,

1.输入”mysql -u root -p [-h locahost -p 3306]”(中括号内是默认内容)回车输入root用户密码(初次安装mysql的要求更改后输入的密码)进入mysql客户端,然后:

2.然后输入:alter user root@localhost identified by password password expire never;    #修改加密规则

3.然后输入:alter user root@localhost identified with mysql_native_password by password;  #更新一下用户的密码

4.最后输入:flush privileges;   #刷新权限

如下:

 

mysql> alter user root@localhost identified by 'password' password expire never;    mysql> alter user root@localhost identified with mysql_native_password by 'password';    mysql> flush privileges;

 

其中,”password“是root用户密码。
此时,navicat可以连接成功,

附:navicat连接属性-例如:

连接名:wang

主机名或ip地址:localhost

端口号:3306

用户名:root

密码:password

 

需要了解更多数据库技术:Navicat for MySQL连接出错:1251,都可以关注数据库技术分享栏目—计算机技术网(www.ctvol.com)!

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/dtteaching/831364.html

(0)
上一篇 2021年9月19日
下一篇 2021年9月19日

精彩推荐