mysql8修改密码策略

查看当前密码策略

SHOW VARIABLES LIKE 'validate_password%';

修改为

set global validate_password.policy=0;
set global validate_password.length=4;
set global validate_password.check_user_name=OFF;
set global validate_password.number_count=0;
set global validate_password.special_char_count=0;
flush privileges;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root' ;
update user set host='%' where user ='root';

猜你喜欢

转载自blog.csdn.net/ciqingloveless/article/details/82223176