Mysql error- many connections

上一篇 / 下一篇  2016-09-29 09:59:26 / 个人分类:数据存储

ERROR 1129 (00000): #HY000Host 'aaaa' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

mysql连接时报以上错误
经排查,是由于MYSQL数据库的参数:max_connect_errors(系统默认10)   mysqld已经得到了大量(max_connect_errors)的主机’hostname’的在中途被中断了的连接请求累计超过10次,就再也无法连接上mysqld服务,   

解决方法:
root登陆mysql执行flush hosts 或mysqladmin执行flush hosts 或者重启MySQL服务。

 mysqld_safe --max_connect_errors=10000 

flush hosts;
set global max_connect_errors=1000;

TAG: error Error ERROR

 

评分:0

我来说两句

Open Toolbar