当前位置:网站首页>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;
边栏推荐
- Servlet全解:继承关系、生命周期、容器和请求转发与重定向等
- Using recursive functions to solve the inverse problem of strings
- Redis installation and deployment (windows/linux)
- The channel cannot be viewed when the queue manager is running
- Don't look for it. All the necessary plug-ins for Chrome browser are here
- Matplotlib剑客行——布局指南与多图实现(更新)
- Gocv image reading and display
- Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
- Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
- Matplotlib剑客行——初相识Matplotlib
猜你喜欢

Shengshihaotong and Guoao (Shenzhen) new energy Co., Ltd. build the charging pile industry chain

Matplotlib swordsman - a stylist who can draw without tools and code

Number structure (C language -- code with comments) -- Chapter 2, linear table (updated version)

【Go实战基础】gin 如何获取 GET 和 POST 的请求参数

During MySQL installation, mysqld Exe reports that the application cannot start normally (0xc000007b)`

Chrome browser plug-in fatkun installation and introduction

微服务实战|原生态实现服务的发现与调用

Introduction to the basic concept of queue and typical application examples

Matplotlib剑客行——初相识Matplotlib

别找了,Chrome浏览器必装插件都在这了
随机推荐
Function ‘ngram‘ is not defined
深入剖析JVM是如何执行Hello World的
Chrome video download Plug-in – video downloader for Chrome
Troubleshooting and handling of an online problem caused by redis zadd
Dix ans d'expérience dans le développement de programmeurs vous disent quelles compétences de base vous manquez encore?
Mysql安装时mysqld.exe报`应用程序无法正常启动(0xc000007b)`
Cloud computing in my eyes - PAAS (platform as a service)
Chrome浏览器插件-Fatkun安装和介绍
Using recursive functions to solve the inverse problem of strings
Matplotlib swordsman line - first acquaintance with Matplotlib
【Go实战基础】gin 高效神器,如何将参数绑定到结构体
Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)
QT qtimer class
Analysis and solution of a classical Joseph problem
Long summary (code with comments) number structure (C language) -- Chapter 4, string (Part 1)
Number structure (C language -- code with comments) -- Chapter 2, linear table (updated version)
Flink - use the streaming batch API to count the number of words
cmd窗口中中文呈现乱码解决方法
《统计学习方法》——第五章、决策树模型与学习(上)