blocked because of many connection errors

今天对北美论坛进行压力测试了的,测试完,再看网站.发现网站不能访问了.报下面的错误.

Discuz! info: Can not connect to MySQL server

Time: 2011-3-22 7:54pm
Script: /Discuz6/upload/forumdisplay.php

Error: Host ‘xx.sina.com’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’
Errno.: 1129

Similar error report has beed dispatched to administrator before.

主机被数据库服务器屏蔽

主机被数据库服务器屏蔽

根据错误编号,在discuz官网上查了下,是**主机被数据库服务器屏蔽了.

解决办法是重启mysql服务或使用 mysqladmin flush-hosts命令.

Host ‘…’ is blocked错误

Host ‘hostname’ 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个连接错误后阻塞一台主机。你可以通过象这样启动服务器很容易地调整它:

shell> safe_mysqld -O max_connect_errors=10000 &

发表评论

返回顶部