mysql修改密码Your password does not satisfy the current policy requirements
Posted zoe佐伊
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql修改密码Your password does not satisfy the current policy requirements相关的知识,希望对你有一定的参考价值。
出现这个问题的原因是:密码过于简单。刚安装的mysql的密码默认强度是最高的,如果想要设置简单的密码就要修改validate_password_policy的值,
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 |
如果要修改这个值,
1、先登入到mysql
2、设置安全级别
3、默认密码长度为8,可以设置为其它值,最小4位
4、设置新密码,刚安装完的mysql必须设置新密码(应该是从5.5版本开始)
以上是关于mysql修改密码Your password does not satisfy the current policy requirements的主要内容,如果未能解决你的问题,请参考以下文章
修改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
安装完绿色版MySQL修改密码:ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo re
Your password does not satisfy the current policy requirements解决办法
You must reset your password using ALTER USER statement before executing this statement.
Mysql 5.7ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execut(代