mysql5.7 1819_mysql5.7 ERROR 1819 (HY000): Your password does not satisfy the current policy requir.

首先,修改validate_password_policy参数的值

mysql> set global validate_password_policy=0;

Query OK,0 rows affected (0.00 sec)

validate_password_length(密码长度)参数默认为8,我们修改为1

mysql> set global validate_password_length=1;

Query OK,0 rows affected (0.00 sec)

完成之后再次执行修改密码语句即可成功

posted @ 2022-08-11 18:49  码海兴辰  阅读(6)  评论(0编辑  收藏  举报