Mysql 远程链接设置

远程链接 GRANT ALL PRIVILEGES ON . TO 'account'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;

查看密码策略 SHOW VARIABLES LIKE 'validate_password%';
set global validate_password_policy=LOW; //关闭密码强度验证
set global validate_password_length=6; //设置密码长度
flush privileges; //设置立即生效

你可能感兴趣的:(Mysql 远程链接设置)