mysql Host ‘XXXXXX’ is blocked because of many connection errors

mysql Host ‘XXXXXX’ is blocked because of many connection errors

  ERROR 1129 (00000): Host ‘XXXXXX’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’
查了下资料
  这说明mysqld已经得到了大量(max_connect_errors)的主机’hostname’的在中途被中断了的连接请求。在 max_connect_errors次失败请求后,mysqld认定出错了(象来字一个黑客的攻击),并且阻止该站点进一步的连接,直到某人执行命令 mysqladmin flush-hosts。
缺省地,mysqld在10个连接错误后阻塞一台主机。你可以通过象这样启动服务器很容易地调整它: set global max_connect_errors=1000;
注意,对给定的主机,如果得到这条错误消息,你应该首先检查该主机的TCP/IP连接有没有问题。如果你的TCP/IP连接不在运行,增加max_connect_errors变量的值对你也不会有帮助!

例:

/usr/local/mysql/bin/mysqladmin flush-host -h 192.168.50.1 -uroot

附:英文
ERROR 1129 (00000): Host ” is blocked because of many connection errors. Unblock with ‘mysqladmin flush-hosts’

If you get the following error, it means that mysqld has received many connect requests from the host ‘host_name’ that have been interrupted in the middle:
By default, mysqld blocks a host after 10 connection errors. You can adjust the value by starting the server like this
> mysqld_safe –max_connect_errors=10000 &Host
时间: 2024-12-24 07:15:12

mysql Host ‘XXXXXX’ is blocked because of many connection errors的相关文章

Host XXX is blocked because of many connection errors, unblock with 'mysqladmin flush-hosts

连接MySQL失败,除了权限问题之外,还遇到这种情况,出错信息:Host XXX is blocked because of many connection errors, unblock with 'mysqladmin flush-hosts'.而且XXX还不是IP地址而是domain name.MySQL服务器和客户端在同一台测试及其上,连接的时候用的mysql -u root -h ipaddr. 查看机器的hosts配置,确实有domain name映射到本机地址,但是有变化,旧的已经

问题: Host "xxx" is blocked because of many connection errors,unblock with 'mysqladmin flush-hosts

错误原因 同一IP在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)error的数据库连接而导致的阻塞. 当客户端连接服务器超时(超过connect_timeout),服务端就会给这个客户端记录一次error,当出错的次数达到max_connect_errors的时候,这个客户端就会被锁定.所以可以根据业务来尽量把这个值设置大一点. 解决办法 1. 提高允许的max_connect_errors的数量 执行如下命令(临时生效,重启后失效) set glo

Host is blocked because of many connection errors

MySQL 出现:Host 'XXXXXX' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' max_connect_errors 参数含义:如果某一客户端尝试连接此MySQL服务器,但是失败(如密码错误等等)X次,则MySQL会无条件强制阻止此客户端连接 解决方法:1.set global max_connect_errors=1000; --可以动态修改 当这一客户端成功连

Host XXX is blocked because of many connection 问题

不知道为什么,我设置的Solr 数据import工具,每运行一段时间后,就无法连接数据库导入数据.经检查说是报错:ERROR 1129 (00000): Host 'XXXXXX' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' . 对于这个问题,我目前查不出来究竟是solr的import数据工具有问题,还是什么原因.现在只能是在数据库服务器端,以root权限登录上去,然后执行

Mysql连接错误:Mysql Host is blocked because of many connection errors

环境:linux,mysql5.5.31错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 原因: 同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞: 解决方法: 1.提高允许的max_connection_errors数量(治标不治本): ① 进入Mysql数据库查看max_conn

黄聪:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法(转)

转自:http://www.cnblogs.com/susuyu/archive/2013/05/28/3104249.html 环境:linux,mysql5.5.21 错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 原因: 同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞: 解

MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法

环境:linux,mysql5.5.21 错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 原因: 同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞: 解决方法: 1.提高允许的max_connection_errors数量(治标不治本): ① 进入Mysql数据库查看max_con

【错误】:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

错误:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法: 使用mysqladmin flush-hosts 命令清理一下hosts文件(不知道mysqladmin在哪个目录下可以使用命令查找:whereis mysqladmin): 在查找到的目录下使用命令修改:/usr/bin/mysqladmin flush-hosts -h192.168.1

MySql Host is blocked because of many connection errors 解决方法

应用日志提示错误:create connection error, url: jdbc:mysql://10.45.236.235:3306/db_wang?useUnicode=true&characterEncoding=UTF-8, errorCode 1129, state HY000java.sql.SQLException: null, message from server: "Host '10.30.174.183' is blocked because of many