当前位置:网站首页>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 !

边栏推荐
- 【Unity3D】人机交互Input
- Create SSH key pair configuration steps
- Codeforces Round #802 (Div. 2)(A-D)
- Codeforces Round #802 (Div. 2)(A-D)
- 《财富自由之路》读书之一点体会
- Modify the case of the string title(), upper(), lower()
- 86. (cesium chapter) cesium overlay surface receiving shadow effect (gltf model)
- Sentimentin tensorflow_ analysis_ cell
- 【上采样方式-OpenCV插值】
- Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
猜你喜欢

为什么许多shopify独立站卖家都在用聊天机器人?一分钟读懂行业秘密!

Zuul 實現動態路由

86.(cesium篇)cesium叠加面接收阴影效果(gltf模型)

6.1 - 6.2 Introduction à la cryptographie à clé publique

Why do many Shopify independent station sellers use chat robots? Read industry secrets in one minute!

Mise en œuvre du routage dynamique par zuul

A company crawling out of its grave

UWB超高精度定位系统原理图

Pycharm package import error without warning

6.1 - 6.2 公钥密码学简介
随机推荐
Classic theory: detailed explanation of three handshakes and four waves of TCP protocol
Windows下安装Tp6.0框架,图文。Thinkphp6.0安装教程
[IDE(ImageBed)]Picgo+Typora+aliyunOSS部署博客图床(2022.6)
[unity3d] rigid body component
6.1 - 6.2 公钥密码学简介
程序人生
UWB ultra high precision positioning system architecture
Wechat applet exits the applet (navigator and api--wx.exitminiprogram)
ThreadPoolExecutor implements file uploading and batch inserting data
线程优先级
Schematic diagram of UWB ultra high precision positioning system
Codeforces Round #800 (Div. 2)
Image translation /gan:unsupervised image-to-image translation with self attention networks
thread priority
Astype conversion data type
LSTM in tensorflow_ Layers actual combat
Zhongshanshan: engineers after being blasted will take off | ONEFLOW u
Why do many Shopify independent station sellers use chat robots? Read industry secrets in one minute!
zencart新建的URL怎么重写伪静态
Codeforces Round #800 (Div. 2)