Mysql连接错误:Mysql Host is blocked because of many connection errors
来源:互联网 发布:pano2vr.js 域名限制 编辑:程序博客网 时间:2024/05/29 06:46
环境:linux,mysql5.5.31错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
原因:
同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞;
解决方法:
1、提高允许的max_connection_errors数量(治标不治本):
① 进入Mysql数据库查看max_connection_errors: show variables like '%max_connect_errors%';
② 修改max_connection_errors的数量为1000: set global max_connect_errors = 1000;
③ 查看是否修改成功:show variables like '%max_connect_errors%';
2、使用mysqladmin flush-hosts 命令清理一下hosts文件(不知道mysqladmin在哪个目录下可以使用命令查找:whereis mysqladmin);
① 在查找到的目录下使用命令修改:/usr/bin/mysqladmin flush-hosts -h192.168.1.1 -P3308 -uroot -prootpwd;
备注:
其中端口号,用户名,密码都可以根据需要来添加和修改;
配置有master/slave主从数据库的要把主库和从库都修改一遍的(我就吃了这个亏明明很容易的几条命令结果折腾了大半天);
第二步也可以在数据库中进行,命令如下:flush hosts;
- Mysql连接错误:Mysql Host is blocked because of many connection errors
- Mysql连接错误:Mysql Host is blocked because of many connection errors
- MYSQL不能连接了,错误ERROR 1129 (00000): Host ” is blocked because of many connection errors;
- MYSQL:Host 'XXXXXX' is blocked because of many connection errors
- MySql Host is blocked because of many connection errors; unblock
- MySql Host is blocked because of many connection errors;
- mysql “Host is blocked because of many connection errors”
- mysql 1129 错误Host is blocked because of many connection errors; unblock with 'mysqladmin flush-host
- MySQL无法连接[MySql Host is blocked because of many connection errors]
- mysql errors:message from server: "Host 'xxx' is blocked because of many connection errors; unblock
- mysql 连接报错:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-h
- mysql:is blocked because of many connection errors解决方案
- mysql:is blocked because of many connection errors解决方案
- 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' 解决方法
- 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' 解决方法
- iOS 在cell上面查找你设置的控件
- AS3操作WebService
- Tomcat发布文件
- 纯CSS控制背景图片100%自适应填充布局
- xml 四种解析方法
- Mysql连接错误:Mysql Host is blocked because of many connection errors
- Fiddler抓包和App重置密码漏洞
- activemq 发布者/订阅 springmvc maven 例子[代码参考]
- std::string和std::wstring声明和用法解释
- Andorid5.0原生下拉刷新简单实现
- Xcode插件管理工具Alcatraz的安装及使用
- 【算法】几种常用排序算法
- Hdu 1556 Color the ball
- mybatis ${}与#{}区别