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