"Host 'xxx.xxx.xxx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-
2015-09-09 09:50
525 查看
错误:java.sql.SQLException
MESSAGE: null, message from server: "Host 'xxx.xxx.xxx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-
1、进入mysql安装目录用mysqladmin命令执行 flush-hosts就搞定了,如在我的linux系统中
/usr/bin/mysqladmin -u root -p flush-hosts
2、进入mysql:mysql -uroot -pmysql
提高允许的max_connection_errors数量(治标不治本):
① 进入Mysql数据库查看max_connect_errors: show variables like '%max_connect_errors%';
② 修改max_connec_errors的数量为1844674407370954751(能设多大,设多大):
set global max_connect_errors = 1844674407370954751;
③ 查看是否修改成功:show variables like '%max_connect_errors%';
show variables like "max_%";
MESSAGE: null, message from server: "Host 'xxx.xxx.xxx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-
1、进入mysql安装目录用mysqladmin命令执行 flush-hosts就搞定了,如在我的linux系统中
/usr/bin/mysqladmin -u root -p flush-hosts
2、进入mysql:mysql -uroot -pmysql
提高允许的max_connection_errors数量(治标不治本):
① 进入Mysql数据库查看max_connect_errors: show variables like '%max_connect_errors%';
② 修改max_connec_errors的数量为1844674407370954751(能设多大,设多大):
set global max_connect_errors = 1844674407370954751;
③ 查看是否修改成功:show variables like '%max_connect_errors%';
show variables like "max_%";
相关文章推荐
- MySQL中的integer 数据类型
- MySQL存储过程
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- MySQL创建用户及权限控制
- MySQL管理数据表
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- MySQL 备份和恢复策略
- mac下安装mysql(转载)
- mysql 修改编码 Linux/Mac/Unix/通用(杜绝修改后无法启动的情况!)
- MySQL数据的导出、导入(mysql内部命令:mysqldump、mysql)
- mysql数据行转列
- Linux下修改MySQL编码的方法
- MySQL Server 日志
- MySQL 安全事宜
- MySQL 备份与恢复