当前位置:网站首页>Increase the maximum number of MySQL connections
Increase the maximum number of MySQL connections
2022-06-12 15:06:00 【Ape fly】
1. Errors occurred
Too many connections
2. reason
One reason is MySQL In profile max_connections It's too small . Another reason , That is, the number of visits to the server is too high ,MySQL Server can't resist .
3. First determine the of the current machine mysql Is the maximum number of connections
show variables like '%max_connections%';
4. Set the maximum number of connections
4.1. Temporary settings are valid
set GLOBAL max_connections=1024;Then go and check , See if it works
show variables like '%max_connections%';Pay attention , This way of setting , once mysql After restart , In this way mysql Directly set variables will fail .
4.2. Permanent settings are valid
modify mysql The configuration file my.cnf, stay [mysqld] Section max_connections value .
max_connections=1024
After saving the configuration file , restart mysql that will do .
5. Enter server , View the number of accesses through the port
netstat -an | grep 3306 | grep ESTABLISHED | wc -l
6. You can also view the specific number of connections
show processlist;
Reference resources :MySQL: ERROR 1040: Too many connections - Simple books
边栏推荐
- 机器人前行、旋转的service编写
- USART (rs232422485), I2C, SPI, can, USB bus
- ROS beginners write the server that the little turtle rotates a certain angle at a certain speed
- Kinect2.0+ORBSLAM2_with_pointcloud_map
- 阿里、腾讯、拼多多垂范,产业互联网的新逻辑渐显
- NETCORE combined with cap event bus to realize distributed transaction - message (2)
- 亿纬锂能拟募资90亿:刘金成骆锦红夫妇合计认购60亿 布局光谷
- Alibaba, Tencent et pingduo sont à la recherche d'une nouvelle logique pour l'Internet industriel
- Autofac Beginner (1)
- JUnit exception, a method that asserts that the exception information is not empty
猜你喜欢

Qiming Zhixian shares the application scheme of 2.8-inch handheld central control screen

xshell 7 官网免费下载

Energy chain smart electronics landed on NASDAQ: Bain is the shareholder to become the first share of charging services in China
![[wp][beginner level] attack and defense world game](/img/07/1ea54d14ba3caca25a68786d5be4a6.png)
[wp][beginner level] attack and defense world game

Ngork implements intranet penetration -- free

Ali suggests that all POJO attributes use wrapper classes, but have you noticed these pits?

TC menu split

函数递归示例

数组相关内容

Learning records of new keywords, references & pointers
随机推荐
Mh32f103arpt6 hardware and software compatible alternative to stm32f103rct6
Left aligned, right aligned, random number, goto, compare output bool
ROS中tf学习笔记
浏览器指纹解读
Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
应势而变,2022年下半场的升级之路
[SPARK][CORE] 面试问题之什么是 external shuffle service?
PTA:自测-2 素数对猜想 (20分)
函数相关事项
Autofac (2)
Yiwei lithium energy plans to raise 9billion yuan: liujincheng and luojinhong jointly subscribe for 6billion yuan of layout Optical Valley
Jetpack architecture component learning (3) -- activity results API usage
Common assertions in JUnit testing
Tcp/ip three handshakes and four waves (interview questions)
[LDA] rough version notes of EM variational reasoning [to be improved
C scanf函数
IMU learning records
C data type
C main函数