目录
一、问题:
授权时候出现:
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
二、原因:
您的密码不符合当前策略要求
三、解决方法:
使用下列语句设置密码的验证强度等级
set global validate_password.policy=0;
重新执行授权语句即可。
四、拓展:
(1)拓展一:
设置密码长度为6:
set global validate_password.length=6;
(2)拓展二:
授权完后,要刷新权限:
flush privileges;
(3)拓展三:
查看权限:
show grants for 'xiaoqi'@'localhost';