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

边栏推荐
- YOLOV5训练结果的解释
- 2. < tag dynamic programming and conventional problems > lt.343 integer partition
- Windows下安装Tp6.0框架,图文。Thinkphp6.0安装教程
- YOLOv5-6.0的一些参数设置和特征图可视化
- LeetCode 19. Delete the penultimate node of the linked list
- 红队得分方法统计
- Datetime data type ---now() gets the current time, datetime() creation date, performs mathematical operations, and to_ Datetime() converts to date type and extracts various parts of date
- [quartz] read configuration from database to realize dynamic timing task
- Happy New Year!
- UWB ultra high precision positioning system architecture
猜你喜欢

Classic theory: detailed explanation of three handshakes and four waves of TCP protocol
Why does the mobile IM based on TCP still need to keep the heartbeat alive?

5. <tag-栈和常规问题>补充: lt.946. 验证栈序列(同剑指 Offer 31. 栈的压入、弹出序列)

Yolov5 super parameter setting and data enhancement analysis

Multipass Chinese document - remote use of multipass

【Unity3D】刚体组件Rigidbody

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

Codeforces Round #802 (Div. 2)(A-D)

DBeaver 安装及配置离线驱动
![[unity3d] rigid body component](/img/57/344aae65e4ac6a7d44b235584f95d1.png)
[unity3d] rigid body component
随机推荐
5. < tag stack and general problems > supplement: lt.946 Verify the stack sequence (the same as the push in and pop-up sequence of offer 31. stack)
[unity3d] human computer interaction input
Windows下安装Tp6.0框架,图文。Thinkphp6.0安装教程
【Unity3D】刚体组件Rigidbody
Créateur de génie: cavalier solitaire, magnat de la technologie et ai | dix ans d'apprentissage profond
Codeforces Round #802 (Div. 2)(A-D)
localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
UWB超高精度定位系统原理图
[greedy college] recommended system engineer training plan
Collections and dictionaries
程序人生
Create a binary response variable using the cut sub box operation
《财富自由之路》读书之一点体会
Vie procédurale
0622 horse palm fell 9%
图解OneFlow的学习率调整策略
Codeforces Round #802 (Div. 2)(A-D)
Introduction to classification data cotegory and properties and methods of common APIs
创建 SSH 秘钥对 配置步骤
【quartz】从数据库中读取配置实现动态定时任务