[mysql下载]mysql 旧密码错误 Error: 2049 (CR_SECURE_AUTH)

更新时间:2018-10-25    来源:php安装    手机版     字体:

【www.bbyears.com--php安装】

错误提示如下

Error: 2049 (CR_SECURE_AUTH)

Message: Connection using old (pre-4.1.1) authentication protocol refused (client option "secure_auth" enabled)

错误:2049 (CR_SECURE_AUTH)
消息:拒绝使用旧密码加密(早于4.1.1)的连接请求(服务器开启了客户端"secure_auth"选项对于使用16位密码加密的账户禁止链接)。


解决办法参见::

 代码如下 mysql -u root -pxxxxxx
mysql> use mysql;
mysql> select * from user where user="xxxx";


查到现在的密码加密是16位的老密码

 代码如下 0364fed5542b42b3


重新修改下密码

 代码如下 mysql-> update user set password=password("123") where user="xxx"


再查看一下密码就是新的密码了

 代码如下


mysql> select * from user where user="xxxx";
*2A2E28094D7B28D4A11108714FE913B0D40512D6


最后记得刷新授权表

 代码如下 mysql> flush PRIVILEGES;

其实就是重新把密码设置了一下即可。

本文来源:http://www.bbyears.com/jiaocheng/45323.html

热门标签

更多>>

本类排行