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

时间:2017-01-18 11:53:40   收藏:0   阅读:1969

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

 

原文:http://www.cnblogs.com/smail-bao/p/6296069.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!