Mysql 异常ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

今天在centos7.2上按照mysql的时候遇见这种异常

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements


网上搜索都是说需要set password 但是无聊设置多少个字符一直提示这个错误,怎么复杂都在提示


这个其实与validate_password_policy的值有关。

所以只需要设置下validate_password_policy就可以了。

mysql>set global validate_password_policy=0;


这样,判断密码的标准就基于密码的长度了。这个由validate_password_length参数来决定。


然后也可将length进行设置。

mysql> set global validate_password_length=1;

然后进行密码设置。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章