当前位置:网站首页>Tp5.0 framework PDO connection MySQL error: too many connections solution
Tp5.0 framework PDO connection MySQL error: too many connections solution
2022-06-26 05:09:00 【You are sexy!】
Due to limited technical experience , Baidu has many cases about this , They are basically similar to
modify mysql In the catalog my.ini, About the 42 Add below line max_connections = 1000 . restart mysql Just go .
Mysql The maximum number of connections has been reached , Revise it mysql Can be configured .
show variables like ‘%max_connections%’;
set global max_connections = 5000;
That's the answer , Although it can alleviate the current situation , But it has not solved the essential problem after all , After groping , The problem was finally solved .
Just configure the long connection .
Find... In the project databases.php That is, the configuration file of the database
find params Array , It's usually empty .
Configure it with parameters :
\PDO::ATTR_PERSISTENT => true,
\PDO::ATTR_CASE => \PDO::CASE_LOWER,
Continue from the previous figure :
Clean up the cache , Refresh again . my.ini The configuration file does not need to be modified . That's all right. .
Perfect solution , salute 、 And the flower !
边栏推荐
- Zuul 实现动态路由
- Multipass Chinese document - use packer to package multipass image
- Keras actual combat cifar10 in tensorflow
- Multipass Chinese documents - improve mount performance
- YOLOv5-6.0的一些参数设置和特征图可视化
- Using requests library and re library to crawl web pages
- Classic theory: detailed explanation of three handshakes and four waves of TCP protocol
- Multipass Chinese document - remote use of multipass
- Muke.com actual combat course
- First day of deep learning and tensorflow learning
猜你喜欢
【Unity3D】刚体组件Rigidbody
Create SSH key pair configuration steps
Wechat applet exits the applet (navigator and api--wx.exitminiprogram)
Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
What is UWB in ultra-high precision positioning system
2. < tag dynamic programming and conventional problems > lt.343 integer partition
pycharm 导包错误没有警告
Classic theory: detailed explanation of three handshakes and four waves of TCP protocol
Happy New Year!
Genius makers: lone Rangers, technology giants and AI | ten years of the rise of in-depth learning
随机推荐
Status of processes and communication between processes
出色的学习能力,才是你唯一可持续的竞争优势
Dbeaver installation and configuration of offline driver
[quartz] read configuration from database to realize dynamic timing task
Create a binary response variable using the cut sub box operation
Using Matplotlib to add an external image at the canvas level
Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
Modify the case of the string title(), upper(), lower()
Anaconda creates tensorflow environment
Zuul 实现动态路由
[greedy college] recommended system engineer training plan
pycharm 导包错误没有警告
UWB ultra high precision positioning system architecture
程序人生
Technical past: tcp/ip protocol that has changed the world (precious pictures, caution for mobile phones)
Codeforces Round #800 (Div. 2)
Using requests library and re library to crawl web pages
Ai+ remote sensing: releasing the value of each pixel
红队得分方法统计
[unity3d] human computer interaction input