ERROR 1129 (HY000): Too many connection errors from

背景:MySQL 5.7.18

今天登录数据库收到一个异常

该问题区别于单实例或者主从架构场景

我们正常远程登录mysql数据库,一旦TCP/IP链接异常超过max_connect_errors的限定次数,就会抛出异常:

ERROR 1129 (HY000): Host * is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts‘

解决办法:

1.临时调整max_connect_errors参数值

2.在服务器端登录数据库执行flush hosts 或者执行mysqladmin flush-hosts -uroot -pxxx

但是

我现在抛出的异常有所区别,虽然也是many connection errors,但我的环境是mysql Innodb Cluster

通过mysqlrouter + keepalive 来实现高可用

所有的外部链接都是通过shell+router来实现,当链接失败次数超过max_connect_errors时,router就会将该IP锁住,当再次从同一个ip申请时就会抛出

ERROR: 1129 (HY000): Too many connection errors from X.X.X.X

解决方法:

重启router即可

时间: 2024-10-02 19:09:23

ERROR 1129 (HY000): Too many connection errors from的相关文章

ERROR 1129 (HY000): mysqladmin flush-hosts

mysql报错:ERROR 1129 (HY000): Host * is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'解决办法:按照提示,远程登录服务器,执行命令“mysqladmin flush-hosts”后,即可成功连接了.但次日再登录它,仍然会报上述错误,显然,这不是彻底的解决办法.不妨试试如下的办法:# vi /etc/my.cnfmax_connect_errors

MySQL报错:ERROR 2013 (HY000): Lost connection to MySQL server during query

首先贴上实验用各版本: OS:CentOS 6.5 MySQL: mysql> select version ();+------------+| version () |+------------+| 5.6.22     |+------------+1 row in set (0.00 sec) 事情是这样的:本来是要在虚机上搭建一个wordpress做实验,刚创建完数据库,就在赋权额时候发生不在计划的错误: mysql>grant all on wordpress.* to [emai

ERROR 2049 (HY000): Connection using old (pre-4.1.1)

测试环境新装了MySQL服务器,在登陆时无法成功登陆.其提示为使用的旧的认证协议而被拒绝.其具体的错误提示为ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)以下是关于这个问题的描述及其解决方案,供大家参考. 1.故障现象[[email protected] ~]# mysqladmin -u root

mysql连接错误解决(ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol ref used (client option 'secure_auth' enabled))

当使用mysql的新版本是,连接老版本的mysql,就会有可能报: ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)这个错误. 异常原因在于服务器端的密码管理协议陈旧,使用的是旧有的用户密码格式存储:但是客户端升级之后采用了新的密码格式.mysql新版本遇到这种不一致的情况就会拒绝连接. 所以在连接是:

ERROR 2013 (HY000): Lost connection to MySQL serve

http://blog.micxp.com/index.php/archives/113/ mysql远程连接出现了ERROR 2013 (HY000): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0 错误,其解决办法如下. 还有另一个问题,我也是用同样的方法解决的就是用show processlists;查看时用户变为unauthenticated u

mariadb报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused")

我这边移除了mysql.sock文件后,重启服务就成功了. 还有一种情况,就是加入galera后,可能是server.cnf配置信息出了问题导致的,修改后,重新运行galera即可,数据库就可以启动成功了. mariadb报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused") 原文地址:h

mysql登陆时出现ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

有4到5天没开mysql,这天晚上打=打开phpstudy,想进去mysql练习练习,结果丢给我这个 ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 错误2013 (HY000):读取初始通信包时MySQL服务器连接丢失,系统错误0 windows进cmd命令行,输入server.msc,然后找到mysql的服务,重启一下就

mysql Host ‘XXXXXX’ is blocked because of many connection errors

mysql Host ‘XXXXXX’ is blocked because of many connection errors ERROR 1129 (00000): Host ‘XXXXXX’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’查了下资料 这说明mysqld已经得到了大量(max_connect_errors)的主机’hostname’的在中途被中断了的连接请求

MySql Host is blocked because of many connection errors 解决方法

应用日志提示错误:create connection error, url: jdbc:mysql://10.45.236.235:3306/db_wang?useUnicode=true&characterEncoding=UTF-8, errorCode 1129, state HY000java.sql.SQLException: null, message from server: "Host '10.30.174.183' is blocked because of many