标签:variable 大小写 character rac strong lob epo 服务器 ble
wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql57-community-release-el7-11.noarch.rpm
yum repolist enabled | grep mysql.*
yum repolist enabled | grep mysql.*
systemctl start mysqld.service //启动服务
systemctl status mysqld.service //检查运行状态
grep "password" /var/log/mysqld.log
mysql -uroot -p
alter user ‘root‘@‘localhost‘ identified by ‘新密码‘;(默认最少八位,大小写字母数字特殊字符)
1. 查看密码策略
show variables like ‘validate_password%‘;
2. 修改密码策略
set global validate_password_policy=0;
set global validate_password_length=4;
修改为级别为0,最小长度为4(最小是4),
validate_password_policy:密码安全策略,默认MEDIUM策略
策略 | 检查规则 |
---|---|
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 |
修改完密码策略之后重新修改密码即可。
标签:variable 大小写 character rac strong lob epo 服务器 ble
原文地址:https://www.cnblogs.com/charlottepl/p/13406106.html