当前位置:网站首页>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 !
边栏推荐
- How to count the status of network sockets?
- PG basics -- Logical Structure Management (trigger)
- Topic 1004: the story of cows (recursion)
- Function test process in software testing
- 股票开户要认识谁?实际上网上开户安全么?
- 从数据库中更新一条数据,用cdc会同时获得op字段分别为d和c的两条数据吗?我记得之前是只有op为u
- Eurake partition understanding
- redis探索之缓存一致性
- Class initialization and instantiation
- nexus搭建npm依赖私库
猜你喜欢

不同的测试技术区分

logstash报错:Cannot reload pipeline, because the existing pipeline is not reloadable

Wang Xing's infinite game ushers in the "ultimate" battle
MySQL报错1040Too many connections的原因以及解决方案

Fundamentals of number theory and its code implementation

Zabbix 6.0 源码安装以及 HA 配置

Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices

codeforces -- 4B. Before an Exam

Logstash error: cannot reload pipeline, because the existing pipeline is not reloadable

The future of game guild in decentralized games
随机推荐
How to count the status of network sockets?
Ustime wrote a bug
How to play with the reading and writing operations of blocking sockets?
Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
Localtime can't re-enter. It's a pit
项目部署,一点也不难!
下半年还有很多事要做
Idea of [developing killer]
晓看天色暮看云,美图欣赏
oracle cdc 数据传输时,clob类型字段,在update时值会丢失,update前有值,但
[encounter Django] - (II) database configuration
快速整明白Redis中的压缩列表到底是个啥
Topic 1004: the story of cows (recursion)
路由基础之OSPF LSA详细讲解
不同的测试技术区分
Introduction to reverse debugging PE structure input table output table 05/07
Flinkcdc should extract Oracle in real time. What should be configured for oracle?
工具箱之 IKVM.NET 项目新进展
During Oracle CDC data transmission, the CLOB type field will lose its value during update. There is a value before update, but
Zabbix 6.0 源码安装以及 HA 配置