查看默认的密码规则:
show variables like 'validate_password%';
1、修改validate_password_policy参数的值:
set global validate_password_policy=0;
2、修改密码长度,默认最短为4位:
set global validate_password_length=6;
设置密码:
set password = password('redhat');
查看默认的密码规则:
show variables like 'validate_password%';
1、修改validate_password_policy参数的值:
set global validate_password_policy=0;
2、修改密码长度,默认最短为4位:
set global validate_password_length=6;
设置密码:
set password = password('redhat');