mysql5.7以上对密码长度和字符串有安全性要求、可以通过如下命令将密码设定的标准和密码长度要求降低。
set global validate_password_policy=0; set global validate_password_length=1;
再添加账号:
grant all privileges on *.* to wfwlapi@"IP" identified by "password";
mysql5.8处理
set global validate_password.policy=0; set global validate_password.length=1; 重启
发表评论