Mariadb開啟密碼復雜度


mariadb開啟密碼復雜度

#安裝插件#

INSTALL SONAME 'simple_password_check';

#設置輸入錯誤多少次鎖定#

set global max_password_errors = 10;

#開啟密碼復雜度#

set global disconnect_on_expired_password=on;

查看變量

show variables like '%password%';

#數據庫密碼插件及配置
# 密碼中至少包含幾位數字
simple_password_check_digits=N
# 密碼中至少幾位字母
simple_password_check_letters_same_case=N
# 密碼至少幾位
simple_password_check_minimal_length=N
# 密碼中特殊符號(非字母和數字)至少幾位
simple_password_check_other_characters=N
# cracklib字典的路徑
cracklib_password_check=DIR


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM