Host is blocked because of many connection errors

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Host is blocked because of many connection errors相关的知识,希望对你有一定的参考价值。

mysql 出现:Host ‘XXXXXX‘ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts‘

max_connect_errors 参数含义:如果某一客户端尝试连接此MySQL服务器,但是失败(如密码错误等等)X次,则MySQL会无条件强制阻止此客户端连接

解决方法:
1、set global max_connect_errors=1000; --可以动态修改

当这一客户端成功连接一次MySQL服务器后,针对此客户端的max_connect_errors会清零。

2、 mysqladmin flush-hosts 或者 mysql>flush hosts;

以上是关于Host is blocked because of many connection errors的主要内容,如果未能解决你的问题,请参考以下文章

MairaDB中,MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush

mycat登录报错Host 'XXX' is blocked because of many connection errors的另一种解决思路

"Host 'onlyyou-bridal.jp' is blocked because of many connection errors; unblock with &#

错误:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hos(代

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

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