mysql修改密碼Your password does not satisfy the current policy requirements

來源:互聯網
上載者:User

標籤:技術   img   ble   str   ida   password   cas   not   current   

出現這個問題的原因是:密碼過於簡單。剛安裝的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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.