mysql5.7 Your password does not satisfy the current policy requirements问题解决
Posted 斌斌有你
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql5.7 Your password does not satisfy the current policy requirements问题解决相关的知识,希望对你有一定的参考价值。
安装mysql5.7rpm包,在更改密码的时候,提示错误
这是由于Mysql5.7默认对于密码的要求强度较高,设置的密码过于简单不予通过。要解决这个问题,涉及到的参数有validate_password_policy和validate_password_length。
validate_password_policy有以下取值:
Policy | Tests Performed |
---|---|
0 or LOW |
Length |
1 or MEDIUM |
Length; numeric, lowercase/uppercase, and special characters |
2 or STRONG |
Length; numeric, lowercase/uppercase, and special characters; dictionary file |
0是只要密码长度符合即可 ;1是必须符合长度,且必须含有数字,小写或大写字母,特殊字符;2是必须符合长度,且必须含有数字,小写或大写字母,特殊字符,字典文件。默认是1。validate_password_length是设置密码长度。
所以解决的办法是:
1、设置密码安全级别。
2、设置密码长度
3、更改密码
以上是关于mysql5.7 Your password does not satisfy the current policy requirements问题解决的主要内容,如果未能解决你的问题,请参考以下文章
mysql5.7密码过期ERROR 1862 (HY000): Your password has expired. To log in you must change
MySQL5.7 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execu
mysql5.7 ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql5.7初始化密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement
MySQL5.7出现Your password has expired. To log in you must change it using a client that supports expir