Navicat for MySQL连接出错:1251

本文介绍了解决Navicat连接MySQL时出现的1251错误的方法。通过更改加密规则和更新用户密码,最终刷新权限,使Navicat能够成功连接到MySQL服务器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

平台:window10 x64+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

 

转载于:https://www.cnblogs.com/Alliswell-WP/p/navicat-1251program.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值