查看当前密码策略
SHOW VARIABLES LIKE 'validate_password%';
修改为
alter user user() identified by "root";
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';