mysql 5.6 grant授权的时候出现问题

本文介绍了一种在MySQL中遇到的grant权限设置错误,并详细记录了解决过程。具体错误为:ERROR 1827 (HY000): The password hash doesn't have the expected format. 通过设置old_passwords参数并重新执行grant命令成功解决了该问题。

mysql> grant select on huamu_licai.* to 'read'@'%' identified by password 'Abcd1234';
ERROR 1827 (HY000): The password hash doesn't have the expected format. Check if the correct password algorithm is being used with the PASSWORD() function.

设置参数old_passwords的值

mysql> set old_passwords=0;

Query OK, 0 rows affected (0.26 sec)

再次grant运行OK

 

转载于:https://www.cnblogs.com/smail-bao/p/6296069.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值