ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
原因是因为密码设置的过于简单会报错,MySQL有密码设置的规范,具体是与validate_password_policy的值有关.具体规则如下:

如果想要查看MySQL完整的初始密码规则,登陆后执行以下命令:
SHOW VARIABLES LIKE 'validate_password%';

密码的长度是由validate_password.length决定的,但是可以通过以下命令修改:
set global validate_password.length=4;

validate_password_policy决定密码的验证策略,默认等级为MEDIUM(中等),可通过以下命令修改为LOW(低)
set global validate_password.policy=0;

设置完成就可以使用简单密码了
网友评论