码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2016-04-19 11:55:08      阅读:783      评论: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!