当前位置:网站首页>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;
边栏推荐
- Knife4j 2.X版本文件上传无选择文件控件问题解决
- 机器学习之数据类型案例——基于朴素贝叶斯法,用数据辩男女
- Talk about the secret of high performance of message queue -- zero copy technology
- A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
- Chrome用户脚本管理器-Tampermonkey 油猴
- View the port of the application published by was
- gocv opencv exit status 3221225785
- 微服务实战|手把手教你开发负载均衡组件
- There is a problem with MySQL installation (the service already exists)
- QT -- how to set shadow effect in QWidget
猜你喜欢
查看was发布的应用程序的端口
I've taken it. MySQL table 500W rows, but someone doesn't partition it?
Talk about the secret of high performance of message queue -- zero copy technology
Hengyuan cloud_ Can aiphacode replace programmers?
Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
Redis installation and deployment (windows/linux)
微服务实战|熔断器Hystrix初体验
Microservice practice | fuse hytrix initial experience
In depth analysis of how the JVM executes Hello World
Matplotlib swordsman line - layout guide and multi map implementation (Updated)
随机推荐
Leetcode sword finger offer brush questions - day 23
Chrome user script manager tempermonkey monkey
定时线程池实现请求合并
Jingdong senior engineer has developed for ten years and compiled "core technology of 100 million traffic website architecture"
Chrome用户脚本管理器-Tampermonkey 油猴
Solution to amq4036 error in remote connection to IBM MQ
盘点典型错误之TypeError: X() got multiple values for argument ‘Y‘
Mirror protocol of synthetic asset track
Shengshihaotong and Guoao (Shenzhen) new energy Co., Ltd. build the charging pile industry chain
cmd窗口中中文呈现乱码解决方法
Solutions to Chinese garbled code in CMD window
微服务实战|声明式服务调用OpenFeign实践
【Go实战基础】gin 如何绑定与使用 url 参数
[go practical basis] gin efficient artifact, how to bind parameters to structures
There is a problem with MySQL installation (the service already exists)
Gocv image cutting and display
Break the cocoon | one article explains what is the real cloud primordial
oracle修改数据库字符集
我服了,MySQL表500W行,居然有人不做分区?
CSDN Q & A_ Evaluation