[MySQL]ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

MySQL 用户密码策略

# 查看当前策略
mysql> SHOW VARIABLES LIKE 'validate_password%';

# 设置密码长度
mysql> set global validate_password_length=4;
# 安全等级 0 LOW 1 MEDIUM 2 STRONG
mysql>  set global validate_password_policy=0;

END

posted @ 2020-07-16 20:24  LeoShi2020  阅读(176)  评论(0编辑  收藏  举报