1129 - Host '' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

前言

远程调试MYSQL的时候,提示链接过多被阻塞

操作方法

1、首先在SSH里登录上MYSQL

mysql -u root -p

2、查看 max_connection_errors,默认为10

show variables like '%max_connection_errors%';

3、修改max_connection_errors的数量为1000(立即生效)

set global max_connect_errors = 1000;

4、在my.cnf中[mysqld]下添加(重启后不失效)

max_connect_errors = 1000

 

THE END