ERROR 1129 (HY000): Host '192.168.7.210' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

一、问题现象

mysql远程连接报错

ERROR 1129 (HY000): Host '192.168.7.210' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

二、问题原因

一般max_connect_errors = 10,要调高错误连接的数量

三、解决方法

登录到要连接的数据中,进行如下配置

mysql> show variables like 'max_connect_errors';
mysql> set global max_connect_errors = 1000;                       # 如果想长期生效,并修改my.cnf配置文件
mysql> flush hosts;
posted @ 2019-06-18 16:26  林中龙虾  阅读(2531)  评论(0编辑  收藏  举报