当前位置:网站首页>MySQL error: unblock with mysqladmin flush hosts
MySQL error: unblock with mysqladmin flush hosts
2022-07-02 09:21:00 【Protect our fat tiger】
Information troubleshooting :
# Check the maximum number of wrong connections
show global variables like 'max_connect_errors';
# View connections IP
select * from performance_schema.host_cache
# Refresh database IP cache
flush hosts
# View connections
SELECT substring_index(host, ':',1) AS host_name, state, count(*) FROM information_schema.processlist GROUP BY state, host_name;
Fundamental way :
According to the findings IP The troubleshooting is deployed in this Ip Service database connection configuration on the server , The reason for this is the database connection configuration error
ex: The database account password is incorrect ,ssl Not closed, etc ......)
Correct modification can solve
Shielding method :
solve : Access to database Use admin Permission account
1、 Put the variable max_connection_errors Set the value of to a larger value
set global max_connect_errors=1500;
2、 Execute the command using flush hosts
3、 Changing the value of the system variable makes MySQL The server does not record host cache Information ( Don't suggest ) Such as :set global host_cache_size=0;
边栏推荐
- 机器学习之数据类型案例——基于朴素贝叶斯法,用数据辩男女
- C language implementation of mine sweeping game
- 【Go实战基础】gin 如何设置路由
- 定时线程池实现请求合并
- Matplotlib剑客行——容纳百川的艺术家教程
- Watermelon book -- Chapter 6 Support vector machine (SVM)
- Chrome video download Plug-in – video downloader for Chrome
- 聊聊消息队列高性能的秘密——零拷贝技术
- Win10 uses docker to pull the redis image and reports an error read only file system: unknown
- ORA-12514问题解决方法
猜你喜欢

微服务实战|熔断器Hystrix初体验

Microservice practice | fuse hytrix initial experience

数构(C语言--代码有注释)——第二章、线性表(更新版)

Chrome浏览器标签管理插件–OneTab

Matplotlib swordsman - a stylist who can draw without tools and code
![[staff] common symbols of staff (Hualian clef | treble clef | bass clef | rest | bar line)](/img/ae/1ecb352c51a101f237f244da5a2ef7.jpg)
[staff] common symbols of staff (Hualian clef | treble clef | bass clef | rest | bar line)

Don't look for it. All the necessary plug-ins for Chrome browser are here

Matplotlib剑客行——布局指南与多图实现(更新)

Data type case of machine learning -- using data to distinguish men and women based on Naive Bayesian method

京东面试官问:LEFT JOIN关联表中用ON还是WHERE跟条件有什么区别
随机推荐
数构(C语言--代码有注释)——第二章、线性表(更新版)
微服务实战|Eureka注册中心及集群搭建
十年開發經驗的程序員告訴你,你還缺少哪些核心競爭力?
[go practical basis] how to bind and use URL parameters in gin
C language implementation of mine sweeping game
「Redis源码系列」关于源码阅读的学习与思考
idea查看字节码配置
win10使用docker拉取redis镜像报错read-only file system: unknown
使用IBM MQ远程连接时报错AMQ 4043解决思路
[go practical basis] how to customize and use a middleware in gin
Statistical learning methods - Chapter 5, decision tree model and learning (Part 1)
Don't look for it. All the necessary plug-ins for Chrome browser are here
【Go实战基础】gin 如何绑定与使用 url 参数
Talk about the secret of high performance of message queue -- zero copy technology
Amq6126 problem solving ideas
Taking the upgrade of ByteDance internal data catalog architecture as an example, talk about the performance optimization of business system
Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
Redis installation and deployment (windows/linux)
AMQ6126问题解决思路
Chrome browser plug-in fatkun installation and introduction