unblock with 'mysqladmin flush-hosts'

unblock with 'mysqladmin flush-hosts'

原因:错误连接数量过大

解决办法:清除连接缓存

先进入MySQL然后执行:

1、切换数据库查看错误连接数量

use performance_schema;
select * from host_cacheG;

2、修改最大错误连接数量

set global max_connect_errors = 4444;

3、刷新缓存

flush hosts;

虽然这种办法治标不治本,但是先解决问题更重要

原文地址:https://www.cnblogs.com/easyidea/p/14492019.html