首页 > 数据库技术 > 详细

MySQL max_connections 总是 214 。不能设大了? max_connections = 214

时间:2016-04-19 11:52:52      阅读:1097      评论:0      收藏:0      [点我收藏+]

 MySQL max_connections 总是 214 。不能设大了?

centos7 mariadb 修改 max_connections 总是214

It was indeed limits set by the OS. Resolved it with :

Edit file /usr/lib/systemd/system/mysqld.service
Add at end:

LimitNOFILE=65535
LimitNPROC=65535

$ systemctl daemon-reload
systemctl restart  mysqld.service
 
技术分享

MySQL max_connections 总是 214 。不能设大了? max_connections = 214

原文:http://www.cnblogs.com/ruiy/p/5407277.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!