当前位置:网站首页>连接mysql报错 errorCode 1129, state HY000, Host ‘xxx‘ is blocked because of many connection errors
连接mysql报错 errorCode 1129, state HY000, Host ‘xxx‘ is blocked because of many connection errors
2022-06-10 19:48:00 【勤奋的Mr.Li】
springcloud项目启动连接mysql过程中报错.
报错关键信息如下:
java.sql.SQLException: null, message from server: "Host '192.168.56.1' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"错误原因:
mysql设定了单个客户端最大连接失败次数,超过后便无法再连接成功.
可命令行查看: 最大失败数为100.

解决方法:
1.进入mysql控制台,修改max_connect_errors:
set global max_connect_errors=99999;若想永久生效,去my.conf文件手动添加或修改该行命令.
但方法1不推荐,修改该数值越大,被攻击时安全性越低.
2.进入mysql控制台,把缓存计数清除掉,重启项目即可:
flush hosts;边栏推荐
- Elastic-Job的快速入门,三分钟带你体验分布式定时任务
- The new audio infinix machine appears in the Google product library, and Tecno CaMon 19 is pre installed with Android 13
- pdf.js-----js解析pdf文件实现预览,并获取pdf文件中的内容(数组形式)
- hidden danger? Limited meaning? Can't stop the real cooking Mini kitchenware hot 618
- 农产品期货开户的条件是什么?现在开户的手续费是多少?
- nodejs: 官方文档3 dgram Stream
- pdf.js-----js解析pdf文件實現預覽,並獲取pdf文件中的內容(數組形式)
- 【Educational Codeforces Round 120 (Rated for Div. 2)】C. Set or Decrease
- Tutoriel Microsoft Word "5", comment changer les marges de page et créer une barre de nouvelles en word?
- [technical fragment] implementation of renaming and filtering duplicate name files with suffixes
猜你喜欢
随机推荐
LeetCode:1037. 有效的回旋镖————简单
hidden danger? Limited meaning? Can't stop the real cooking Mini kitchenware hot 618
Tutoriel Microsoft Word "5", comment changer les marges de page et créer une barre de nouvelles en word?
电子招标采购商城系统:优化传统采购业务,提速企业数字化升级
一个10年左右的老程序员说:简单CRUD功能进入无码开发时代1 之 增删改查接口信息
H5 van-popup全屏弹窗,模拟页面回退效果,支持左上角返回按钮,适用物理返回,侧滑与底部返回键
localhost和127.0.0.1的区别?
【录入课本latex记录】
ResourceNotFoundException : Unable to find resource
[observation] shengteng Zhixing: scene driven, innovation first, press the "acceleration key" for Intelligent Transportation
【legendre】多项式
Knowledge map / relationship visualization
Enhance the target method with surround notifications - extract notes
详解三级缓存解决循环依赖
零信任架构
国庆期间给大家推荐一个可能会成为2019最佳的CRUD工具
使用环绕通知对目标方法进行增强—摘抄笔记
中衍期货公司是国内的正规平台吗?开户安全吗?想开个期货账户
Solve the problem that the idea automatically becomes * when there are more than 5 identical packages
PDF. JS - - - - JS analyse le fichier PDF pour réaliser l'aperçu et obtenir le contenu du fichier PDF (sous forme de tableau)









