1. 程式人生 > >mysql5.7 Your password does not satisfy the current policy requirements問題解決

mysql5.7 Your password does not satisfy the current policy requirements問題解決

特殊字符 src strong form 改密 for mysql date 特殊

安裝mysql5.7rpm包,在更改密碼的時候,提示錯誤

技術分享

這是由於Mysql5.7默認對於密碼的要求強度較高,設置的密碼過於簡單不予通過。要解決這個問題,涉及到的參數有validate_password_policy和validate_password_length。

validate_password_policy有以下取值:

PolicyTests 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問題解決