当前位置:网站首页>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;
边栏推荐
- Watermelon book -- Chapter 5 neural network
- Matplotlib swordsman line - first acquaintance with Matplotlib
- Matplotlib swordsman line - layout guide and multi map implementation (Updated)
- View the port of the application published by was
- Matplotlib剑客行——没有工具用代码也能画图的造型师
- 2022/2/13 summary
- Mysql 多列IN操作
- cmd窗口中中文呈现乱码解决方法
- [go practical basis] how to set the route in gin
- Don't spend money, spend an hour to build your own blog website
猜你喜欢

Probability is not yet. Look at statistical learning methods -- Chapter 4, naive Bayesian method

聊聊消息队列高性能的秘密——零拷贝技术

Microservice practice | Eureka registration center and cluster construction
![[go practical basis] how to install and use gin](/img/0d/3e899bf69abf4e8cb7e6a0afa075a9.png)
[go practical basis] how to install and use gin

WSL installation, beautification, network agent and remote development

深入剖析JVM是如何执行Hello World的

【Go实战基础】gin 如何设置路由

There is a problem with MySQL installation (the service already exists)

一篇详解带你再次重现《统计学习方法》——第二章、感知机模型

数构(C语言)——第四章、矩阵的压缩存储(下)
随机推荐
Cartoon rendering - average normal stroke
微服务实战|微服务网关Zuul入门与实战
oracle修改数据库字符集
自定义Redis连接池
Gocv split color channel
微服务实战|原生态实现服务的发现与调用
Long summary (code with comments) number structure (C language) -- Chapter 4, string (Part 1)
Webflux responsive programming
知识点很细(代码有注释)数构(C语言)——第三章、栈和队列
Function ‘ngram‘ is not defined
C4D quick start tutorial - C4d mapping
Avoid breaking changes caused by modifying constructor input parameters
"Redis source code series" learning and thinking about source code reading
【Go实战基础】如何安装和使用 gin
How to realize asynchronous programming in a synchronous way?
[go practical basis] how to verify request parameters in gin
微服务实战|声明式服务调用OpenFeign实践
Amq6126 problem solving ideas
What is the future value of fluorite mine of karaqin Xinbao Mining Co., Ltd. under zhongang mining?
win10使用docker拉取redis镜像报错read-only file system: unknown