`

【转】Host is blocked because of many connection errors

 
阅读更多
刚才发现,公司某一台Web服务器访问时提示:
错误描述:Host '*' is blocked because of many connection errors.  Unblock with 'mysqladmin flush-hosts'

第一次见到这提示,记录一下。
从描述上顾名思义一下,这台web产生了大量的错误连接,导致MYSQL数据库拒绝了这台web的请求。可以使用'mysqladmin flush-hosts'命令来解决这个问题。

这台的mysql和web是分离的,找到目标mysql,去运行了'mysqladmin flush-hosts',果然恢复了:)

查了下原因:

mysqld已经得到了大量(max_connect_errors)的主机'hostname'的在中途被中断了的连接请求。在max_connect_errors次失败请求后,mysqld认定出错了(象来字一个黑客的攻击),并且阻止该站点进一步的连接,直到某人执行命令mysqladmin flush-hosts。
缺省地,mysqld在10个连接错误后阻塞一台主机。你可以通过象这样启动服务器很容易地调整它:
shell> safe_mysqld -O max_connect_errors=10000 &
本文转摘自『IT学习者』http://www.itlearner.com/article/2008/4284.shtml

分享到:
评论

相关推荐

    Your page is blocked due to a security的解决方案

    关于Your page is blocked due to a security的解决方案

    解决mysql出现大量TIME_WAIT

    如果MySQL出现“Host 'IP' is blocked because of many connection errors”的错误提示,表明由于过多的连接错误,该IP地址已被MySQL服务器封锁。此时,可以通过执行`mysqladmin flush-hosts -h IP -u root -p`命令...

    Java常见异常

    5. **ERROR 1129 (00000): Host ‘XXXXXX’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’** MySQL服务器将主机封锁,因为存在多次连接错误。使用`mysqladmin flush-...

    java.sql.SQLException: null,  message from server: “Host ‘%’ is not allowed to connect to

    java.sql.SQLException: null, message from server: “Host ‘223.72.41.7’ is not allowed to connect to this MySQL server” 客户端访问时报错: 解决方法: 1,登陆服务器 mysql> use mysql; //用mysql ...

    微软内部资料-SQL性能优化3

    Another type of table lock is a schema stability lock (Sch-S) and is compatible with all table locks except the schema modification lock (Sch-M). The schema modification lock (Sch-M) is incompatible ...

    Node.js-当CPU旋转和退出程序的堆栈跟时找出node进程是否受阻

    Figure out if your node process is blocked because the CPU is spinning and exit the program with a stack trace if that is the case

    一个小游戏

    Gameloft的笔试 Rules of Game: ---------... If one sphere is blocked because there is something underneath, the other one will continue falling (with no player control over it) until it reaches something.

    python_hopelight_calendar_api

    若注册时提示Error:This user account is blocked.Contact support@vercel.com for more information. 这是由于Vercel不支持大部分国内邮箱。可以将github账号主邮箱改为Gmail邮箱。 但是根据群友React,将github...

    python_github_calendar_api

    若注册时提示Error:This user account is blocked.Contact support@vercel.com for more information. 这是由于Vercel不支持大部分国内邮箱。可以将github账号主邮箱改为Gmail邮箱。 但是根据群友React,将github...

    Sakemail

    Because some people need to use IP addresses instead of Host names, I‘ve added a new property IPAddress to SakPOP and SakSMTP. If both are filled, then the Host name will be used, thanks to Roger F. ...

    tc_skbedit.rar_Blocked_tc skbedit

    The blocked_hash is used to find POSIX lock loops for deadlock detection. It is protected by blocked_lock_lock.

    node-blocked, 检查事件循环是否已经被阻止.zip

    node-blocked, 检查事件循环是否已经被阻止 块检查 node 事件循环是否被阻止。如果运行 node.js ,你可以使用非常类似的阻止阻塞函数,从而使用非常类似的阻止阻塞函数。安装$ npm install blocked描述blocked() ...

    Blocked.xbf

    Blocked

    im.rar_Blocked_induction motor

    标题中的"im.rar_Blocked_induction motor"暗示了我们讨论的主题是关于感应电机,特别是阻塞转子测试。在这个主题中,我们将深入探讨感应电机的工作原理、无负载测试以及阻塞转子测试的重要性和实施方法。 感应电机...

    VclZip pro v3.10.1

    While it has been tested and has even been used in at least two production applications for several months now prior to initial release, there are so many combinations of property settings, ...

    word自动转化为chm

    However, what bothers you most is not using how many kinds of tools, the Word file, the CHM file and the online documents are all need to be modified, this is the real matter. Once the changing work ...

    图像特征提取方法的研究.caj

    On the other hand, in real application efficiency is also an important indicator to assess one algorithm, because in many cases only algorithms with high efficiency can satisfy request of real task....

    BURNINTEST--硬件检测工具

    Here is a summary of all changes that have been made in each version of BurnInTest. Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system ...

    Audit Technical Guide - Firewalls

    24 Traffic passed and blocked by the firewall is logged and reviewed 25 Critical Events sound an alert 26 All incoming file and attachments are virus scanned 27 Encryption is correctly configured 28 ...

Global site tag (gtag.js) - Google Analytics