当前位置:网站首页>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;
边栏推荐
- Don't spend money, spend an hour to build your own blog website
- 聊聊消息队列高性能的秘密——零拷贝技术
- QT -- how to set shadow effect in QWidget
- Redis zadd导致的一次线上问题排查和处理
- Cloudreve自建云盘实践,我说了没人能限制得了我的容量和速度
- Typeerror: X () got multiple values for argument 'y‘
- Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
- Chrome浏览器插件-Fatkun安装和介绍
- Amq6126 problem solving ideas
- 【Go实战基础】如何安装和使用 gin
猜你喜欢
There is a problem with MySQL installation (the service already exists)
Matplotlib swordsman - a stylist who can draw without tools and code
Typeerror: X () got multiple values for argument 'y‘
C4D quick start tutorial - Chamfer
Watermelon book -- Chapter 6 Support vector machine (SVM)
深入剖析JVM是如何执行Hello World的
View the port of the application published by was
WSL installation, beautification, network agent and remote development
Taking the upgrade of ByteDance internal data catalog architecture as an example, talk about the performance optimization of business system
cmd窗口中中文呈现乱码解决方法
随机推荐
Ora-12514 problem solving method
Watermelon book -- Chapter 5 neural network
微服务实战|Eureka注册中心及集群搭建
AMQ 4043 solution for errors when using IBM MQ remote connection
微服务实战|微服务网关Zuul入门与实战
【Go实战基础】如何安装和使用 gin
Analysis and solution of a classical Joseph problem
AMQ6126问题解决思路
Dix ans d'expérience dans le développement de programmeurs vous disent quelles compétences de base vous manquez encore?
Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)
Gocv image reading and display
分布式服务架构精讲pdf文档:原理+设计+实战,(收藏再看)
Complete solution of servlet: inheritance relationship, life cycle, container, request forwarding and redirection, etc
Gocv boundary fill
长篇总结(代码有注释)数构(C语言)——第四章、串(上)
京东面试官问:LEFT JOIN关联表中用ON还是WHERE跟条件有什么区别
知识点很细(代码有注释)数构(C语言)——第三章、栈和队列
Microservice practice | teach you to develop load balancing components hand in hand
[go practical basis] gin efficient artifact, how to bind parameters to structures