当前位置:网站首页>ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
2022-08-02 00:16:00 【m0_67391518】
mysql中初始密码长度为8,当你更改MySQL密码策略后
mysql> set global validate_password_policy=0;
并且设置简单好记的密码后
mysql> set password=password("000000");
可能仍然出现错误:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements,此时必须第一次设置密码长度为8位才不报错,更改密码成功后才能查看validate_password插件的以下参数,当然,validate_password插件必须已经安装,MySQL5.7是默认安装的。

此时需要更改长度再修改密码

我的validate_password_length参数默认为8,它有最小值的限制,最小值为:
validate_password_number_count
+ validate_password_special_char_count
+ (2 * validate_password_mixed_case_count)
其中,validate_password_number_count指定了密码中数据的长度,validate_password_special_char_count指定了密码中特殊字符的长度,validate_password_mixed_case_count指定了密码中大小字母的长度。
这些参数,默认值均为1,所以validate_password_length最小值为4,如果你显性指定validate_password_length的值小于4,尽管不会报错,但validate_password_length的值将设为4。当然也有mysql不符合这种情况的情形。所以此文章或许可以帮助您。
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢

如何期货开户和选择期货公司?

渗透测试与攻防对抗——渗透测试基础

攻防世界-web-Training-WWW-Robots

Realize deletion - a specified letter in a string, such as: the string "abcd", delete the "a" letter in it, the remaining "bcd", you can also pass multiple characters to be deleted, and pass "ab" can

Unknown CMake command "add_action_files"

C语言函数详解(1)【库函数与自定义函数】

go笔记记录——channel

Redis - message publish and subscribe

nodeJs--mime module

nodeJs--mime模块
随机推荐
JSP out. The write () method has what function?
DOA从一维阵列传感说起
Automatic conversion of Oracle-style implicit joins to ANSI JOINs using jOOQ
扫雷小游戏
管理基础知识16
C语言实现扫雷游戏
青蛙跳台阶
Redis 相关问题
146. LRU cache
Routing strategy
Redis - message publish and subscribe
BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
NodeJs, all kinds of path
Don't concatenate strings with jOOQ
管理基础知识12
A simple file transfer tools
Angr(十二)——官方文档(Part3)
How to find new potential projects?Tools recommended
Identify memory functions memset, memcmp, memmove, and memcpy
els strip deformation