当前位置:网站首页>Reasons for MySQL reporting 1040too many connections and Solutions
Reasons for MySQL reporting 1040too many connections and Solutions
2022-07-01 13:04:00 【1024 questions】
Error reason :
terms of settlement
summary
MySQL Report errors 1040 ‘Too many connections’
Error reason :The actual number of connections exceeded mysql The maximum number of connections allowed , Too many visits ,MySQL Server can't resist .
terms of settlement1、 modify max_connections, If this value is already large ,2、 At this time, we should consider increasing the pressure of decentralized reading from the server ;
Windows find mysql.ini(Linux modify /etc/my.cnf file , stay [mysqld] Newly added max_connections=N). Modify the maximum number of connections allowed max_connections=N, The default is 100 Generally set to 500~1000 More appropriate ( This is based on the condition that the machine can support , Because if there are more connections , Be situated between MySQL A connection buffer is provided for each connection , It's going to cost more memory , So adjust the value properly , Do not blindly increase the set value .), The last restart mysql, Make sure you reboot .

net stop mysqlnet start mysql2、 Temporarily modify and view the maximum number of connections :
show variables like ‘%max_connections%';Wildcards view the number of connections in the current state , To determine the size of the value .
show global status like ‘Max_used_connections'; Modify the order :set global max_connections=1000;( restart mysql It will fail after service )

This is about MySQL Report errors 1040'Too many connections' That's all for the article about the reasons and solutions , More about MySQL Report errors 1040 Too many connections Please search the previous articles of software development network or continue to browse the relevant articles below. I hope you will support software development network more in the future !
边栏推荐
- Topic 1004: the story of cows (recursion)
- VM虚拟机配置动态ip和静态ip访问
- Perl 5.10.0 installation package download
- leetcode:226. 翻转二叉树【dfs翻转】
- Ikvm of toolbox Net project new progress
- 基于开源流批一体数据同步引擎 ChunJun 数据还原 —DDL 解析模块的实战分享
- Operator-1初识Operator
- logstash报错:Cannot reload pipeline, because the existing pipeline is not reloadable
- Update a piece of data from the database. Will CDC get two pieces of data with OP fields D and C at the same time? I remember before, only OP was U
- What are the solutions for session sharing of highly paid programmers & interview questions series 118?
猜你喜欢

VM虚拟机配置动态ip和静态ip访问

Feign & Eureka & Zuul & Hystrix 流程

Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing

基于开源流批一体数据同步引擎 ChunJun 数据还原 —DDL 解析模块的实战分享
![leetcode:241. Design priority for operation expression [DFS + Eval]](/img/d0/8dedeba7ecedccd25e0e3e96ff3362.png)
leetcode:241. Design priority for operation expression [DFS + Eval]

不同的测试技术区分

Jenkins+webhooks-多分支参数化构建-

MHA high availability cluster deployment and failover of database

The popular major I chose became "Tiankeng" four years later

数据库之MHA高可用集群部署及故障切换
随机推荐
哪个券商公司开户佣金低又安全又可靠
[today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
Mysql间隙锁
Operator-1初识Operator
Logstash error: cannot reload pipeline, because the existing pipeline is not reloadable
Wechat simulated geographical location_ Camouflage wechat location
Redis exploration: cache breakdown, cache avalanche, cache penetration
79. 单词搜索【dfs + 回溯visit + 遍历起点】
[encounter Django] - (II) database configuration
leetcode:241. 为运算表达式设计优先级【dfs + eval】
leetcode 322. Coin Change 零钱兑换(中等)
6.30 simulation summary
Simple Fibonacci (recursive)
be based on. NETCORE development blog project starblog - (13) add friendship link function
Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
彩色五角星SVG动态网页背景js特效
王兴的无限游戏迎来“终极”一战
Who should I know when opening a stock account? Is it actually safe to open an account online?
使用nvm管理nodejs(把高版本降级为低版本)
Tencent Li Wei: deeply cultivate "regulatory technology" to escort the steady and long-term development of the digital economy