mysql 5.6 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

 

posted @ 2017-01-18 11:20  BigBao的博客  阅读(1335)  评论(0编辑  收藏  举报