mysql授权IP登录

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

https://blog.csdn.net/hello_world_qwp/article/details/79551789

授权所有,youpassword为登录密码
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

指定IP
GRANT ALL PRIVILEGES ON *.* TO 'root'@'171.111.8.130' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

如果失败删除后重新授权
delete from user where host = '171.111.8.130' and user = 'root';

保存配置

flush privileges;

posted @ 2020-08-31 09:04  生活无限美  阅读(629)  评论(0编辑  收藏  举报