信息排查
# 查看最大错误连接数限制 show global variables like 'max_connect_errors'; # 查看连接IP select * from performance_schema.host_cache # 刷新数据库IP缓存 flush hosts # 查看连接 SELECt substring_index(host, ':',1) AS host_name, state, count(*) FROM information_schema.processlist GROUP BY state, host_name;
解决:进入数据库 使用admin权限账号
1、将变量max_connection_errors的值设置为一个更大的值 set global max_connect_errors=1500; 2、执行命令使用flush hosts 3、改变系统变量值是的让MySQL服务器不记录host cache信息(不建议)如:set global host_cache_size=0;



