您的位置:首页 > 数据库 > MySQL

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

2017-01-18 11:20 211 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐