报错:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements(Linux系统下mysql密

 

系统:CentOS 7

Mysql版本:5.7.22

 

     在给zabbix用户设置统一密码时出现密码不合法报错:

     报错:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements(Linux系统下mysql密

     进入mysql下,执行以下操作更改密码策略(前提是validate_password插件必须已经安装,从5.7版本开始默认安装)

 

1.修改validate_password_policy参数的值,即policy = 0 ,仅限制密码的长度

mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.00 sec)


2.查看默认密码的长度

mysql> select @@validate_password_length;
+----------------------------+
| @@validate_password_length |
+----------------------------+
|                          8 |
+----------------------------+
1 row in set (0.00 sec)


3.修改默认密码的长度(这里修改为6)

mysql> set global validate_password_length=6;
Query OK, 0 rows affected (0.00 sec)

 



上一篇:egg-validate和 parameter 数组,对象验证问题


下一篇:安装mysql5.7