mysql-server数据库版本:8.0.11(ubuntu 18.04)
mysql-community-server-dbgsym_8.0.11-1ubuntu18.04_amd64.deb
查看密码策略:
shell
SHOW VARIABLES LIKE 'validate_password%';
修改策略值
shell
set global validate_password.policy='LOW';
取消root用户免密登录:
shell
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'Aa123456';