首页 > 数据库> > 【mysql】ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
【mysql】ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
作者:互联网
出现问题:
CentOS安装完MySQL修改默认密码时出现了如下错误:
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
原因是因为密码设置的过于简单会报错,MySQL有密码设置的规范
查看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;
标签:satisfy,set,requirements,MySQL,密码,mysql,policy,validate,password 来源: https://www.cnblogs.com/TD1900/p/14837062.html