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