数据库
首页 > 数据库> > 报错:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements(Linux系统下mysql密

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

作者:互联网

 

系统:CentOS 7

Mysql版本:5.7.22

 

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

    

     进入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)

 



标签:satisfy,set,requirements,密码,报错,mysql,policy,validate,password
来源: https://www.cnblogs.com/hydd/p/12532802.html