程序无法连接MySQL,提示:
null, message from server: "Host '192.168.6.68' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"
原因:同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞;
解决办法:
进入mysql安装目录用mysqladmin命令执行 flush-hosts就搞定了,如在我的linux系统中
/usr/local/mysql5.5.35/bin/mysqladmin -u root -p flush-hosts