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

边栏推荐
- Multipass Chinese document - remove instance
- Procedural life
- 广和通联合安提国际为基于英伟达 Jetson Xavier NX的AI边缘计算平台带来5G R16强大性能
- Lstms in tensorflow_ Cell actual combat
- 图解OneFlow的学习率调整策略
- app 应用安装到手机,不显示图标,引发的思考
- 关于支付接口回调地址参数字段是“notify_url”,签名过后的特殊字符url编码以后再解码后出现错误(¬ , ¢, ¤, £)
- One of token passing between microservices @feign's token passing
- Sentimentin tensorflow_ analysis_ layer
- ModuleNotFoundError: No module named ‘numpy‘
猜你喜欢

Multipass Chinese document - remote use of multipass

天才制造者:独行侠、科技巨头和AI|深度学习崛起十年

86. (cesium chapter) cesium overlay surface receiving shadow effect (gltf model)

Image translation /gan:unsupervised image-to-image translation with self attention networks

Practical cases | getting started and mastering tkinter+pyinstaller

天才制造者:獨行俠、科技巨頭和AI|深度學習崛起十年

localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。

apktool 工具使用文档
Protocol selection of mobile IM system: UDP or TCP?

创建 SSH 秘钥对 配置步骤
随机推荐
Anaconda creates tensorflow environment
Procedural life
Dbeaver installation and configuration of offline driver
UWB超高精度定位系统架构图
Generalized linear model (logistic regression, Poisson regression)
Why does the mobile IM based on TCP still need to keep the heartbeat alive?
Wechat applet exits the applet (navigator and api--wx.exitminiprogram)
Technical problems to be faced in mobile terminal im development
为什么许多shopify独立站卖家都在用聊天机器人?一分钟读懂行业秘密!
2. < tag dynamic programming and conventional problems > lt.343 integer partition
[geek] product manager training camp
Transport layer TCP protocol and UDP protocol
Tensorflow visualization tensorboard "no graph definition files were found." error
skimage.morphology.medial_axis
Créateur de génie: cavalier solitaire, magnat de la technologie et ai | dix ans d'apprentissage profond
Modify the case of the string title(), upper(), lower()
RESNET in tensorflow_ Train actual combat
Datetime data type - min() get the earliest date and date_ Range() creates a date range, timestamp() creates a timestamp, and tz() changes the time zone
6.1 - 6.2 introduction to public key cryptography
Mise en œuvre du routage dynamique par zuul