MySQL报错unblock with ‘mysqladmin flush-hosts‘

  • 作者: dd
  • 分类: Linux
  • 阅读: (195)
  • 评论(0)
  • 发表日期: 2022-08-30 18:07:32

解决方法1:修改max_connect_errors的值
(1)进入Mysql数据库查看max_connect_errors:
> show variables like '%max_connect_errors%';
(2)修改max_connect_errors的值:
> set global max_connect_errors = 100;
(3)查看是否修改成功
> show variables like '%max_connect_errors%';

解决方法2:使用mysqladmin flush-hosts 命令清理一下hosts文件
(1)在查找到的目录下使用命令修改:mysqladmin -u xxx -p flush-hosts
或者
> flush hosts;
 

 

https://blog.csdn.net/Dooonald/article/details/81038989

提交评论

您尚未登录,登录之后方可评论~ 登录 or 注册

评论列表

暂无评论