当前位置:网站首页>連接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 20:46: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;边栏推荐
- Li Kou 10821084 solution_ Question of SQL query type
- js基础及常考面试题之 [] == ![]结果为true, []==[]结果为false 详解
- pytorch深度学习——卷积操作以及代码示例
- 【电脑使用】如何设置没有自启项的软件开机启动
- 观点丨Play and Earn 会让加密游戏误入歧途
- Knowledge map / relationship visualization
- Uncover secrets: how can wechat red envelopes in the Spring Festival Gala resist 10billion requests?
- 【观察】昇腾智行:场景驱动,创新先行,为智慧交通按下“加速键”
- Esp8266 system environment setup
- Enhance the target method with surround notifications - extract notes
猜你喜欢

pytorch深度学习——卷积操作以及代码示例

暗黑破坏神不朽WIKI地址 暗黑破坏神不朽数据库地址分享
![[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service](/img/9e/9ce804d84fb8ec9221b7c10bbd6c36.jpg)
[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service

Mysql database foundation

The new audio infinix machine appears in the Google product library, and Tecno CaMon 19 is pre installed with Android 13

Solve the problem that the idea automatically becomes * when there are more than 5 identical packages

CVPR 2022丨清华大学提出:无监督域泛化 (UDG)

2 pcs share a set of keyboard and mouse

canvas 高级功能(上)
![[technical fragment] implementation of renaming and filtering duplicate name files with suffixes](/img/be/d33cd20ae37dfb5d3ea59ce8b1e568.png)
[technical fragment] implementation of renaming and filtering duplicate name files with suffixes
随机推荐
How to use Diablo immortal database
Knowledge map / relationship visualization
功耗开发经验分享:设计功耗大板
Finally, someone explained the difference among cookies, sessions and tokens. Detailed explanation, interview questions.
手写代码 bind
安全隐患?意义有限?挡不住真煮迷你厨具火爆618
监控易打造“准生态”格局,赋能信创“平替”
观点丨Play and Earn 会让加密游戏误入歧途
LeetCode:497. 非重叠矩形中的随机点————中等
CVPR 2022 Tsinghua University proposed unsupervised domain generalization (UDG)
Deploying static websites using OSS and CDN on Alibaba cloud international
中国工科研究生200多篇英文论文中最常见的习惯(The Most Common Habits from more than 200 English Papers written by Gradua)
NetWorkX使用方法及 nx.draw()相关参数
利用阿里云国际购买的服务器搭建个人网站步骤
一个10年左右的老程序员说:简单CRUD功能进入无码开发时代1 之 增删改查接口信息
mixin--混入
老程序员说:别再直译这大千世界了,开发人员应该回归程序设计
Is Jiuzhou futures regular? Is it safe to open an account
RuntimeError: Attempting to deserialize object on CUDA device 1 but torch.cuda.device_count() is 1.
游戏兼容性测试(通用方案)