当前位置:网站首页>MySql报错:unblock with mysqladmin flush-hosts
MySql报错:unblock with mysqladmin flush-hosts
2022-07-02 06:33:00 【保护我方胖虎】
信息排查:
# 查看最大错误连接数限制
show global variables like 'max_connect_errors';
# 查看连接IP
select * from performance_schema.host_cache
# 刷新数据库IP缓存
flush hosts
# 查看连接
SELECT substring_index(host, ':',1) AS host_name, state, count(*) FROM information_schema.processlist GROUP BY state, host_name;
根本之道:
根据查出的IP排查部署在该Ip服务器上的服务数据库连接配置,出现这个的原因是其数据库连接配置错误
ex:数据库账号密码不对,ssl没有关闭等等......)
修改正确即可解决
屏蔽之法:
解决:进入数据库 使用admin权限账号
1、将变量max_connection_errors的值设置为一个更大的值
set global max_connect_errors=1500;
2、执行命令使用flush hosts
3、改变系统变量值是的让MySQL服务器不记录host cache信息(不建议)如:set global host_cache_size=0;
边栏推荐
- Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
- Jd.com interviewer asked: what is the difference between using on or where in the left join association table and conditions
- The channel cannot be viewed when the queue manager is running
- Oracle修改表空间名称以及数据文件
- 数构(C语言--代码有注释)——第二章、线性表(更新版)
- [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
- "Redis source code series" learning and thinking about source code reading
- 微服务实战|微服务网关Zuul入门与实战
- Redis安装部署(Windows/Linux)
猜你喜欢
[staff] time mark and note duration (staff time mark | full note rest | half note rest | quarter note rest | eighth note rest | sixteenth note rest | thirty second note rest)
Matplotlib swordsman line - first acquaintance with Matplotlib
Oracle modify database character set
深入剖析JVM是如何执行Hello World的
查看was发布的应用程序的端口
Say goodbye to 996. What are the necessary plug-ins in idea?
A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
【Go实战基础】gin 高效神器,如何将参数绑定到结构体
Introduction to the basic concept of queue and typical application examples
京东面试官问:LEFT JOIN关联表中用ON还是WHERE跟条件有什么区别
随机推荐
Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
Pdf document of distributed service architecture: principle + Design + practice, (collect and see again)
我服了,MySQL表500W行,居然有人不做分区?
西瓜书--第六章.支持向量机(SVM)
[go practical basis] how to verify request parameters in gin
WSL安装、美化、网络代理和远程开发
Mysql安装时mysqld.exe报`应用程序无法正常启动(0xc000007b)`
Chrome视频下载插件–Video Downloader for Chrome
Hengyuan cloud_ Can aiphacode replace programmers?
Chrome browser tag management plug-in – onetab
Microservice practice | declarative service invocation openfeign practice
洞见云原生|微服务及微服务架构浅析
概念到方法,绝了《统计学习方法》——第三章、k近邻法
微服务实战|负载均衡组件及源码分析
Matplotlib剑客行——布局指南与多图实现(更新)
使用IBM MQ远程连接时报错AMQ 4043解决思路
十年开发经验的程序员告诉你,你还缺少哪些核心竞争力?
[staff] common symbols of staff (Hualian clef | treble clef | bass clef | rest | bar line)
Watermelon book -- Chapter 5 neural network
Redis sorted set data type API and application scenario analysis