mysql 同一IP 产生太多终端的数据库连接导致阻塞
Posted 马三
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 同一IP 产生太多终端的数据库连接导致阻塞相关的知识,希望对你有一定的参考价值。
问题:null, message from server: "Host ‘ip‘ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts‘
原因:同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞;
解决方案:
进入命令行 到mysql安装目录,bin文件夹下执行
mysqladmin -u username -p flush-hosts
输入password
password:
以上是关于mysql 同一IP 产生太多终端的数据库连接导致阻塞的主要内容,如果未能解决你的问题,请参考以下文章
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
mysql host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts
Native for MySQL 连接MySQL 提示is blocked because of many connection errors; unblock with mysqladmin **