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

时间:2022-01-30 19:38:35

 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
MySQL max_connections 总是 214 。不能设大了? max_connections = 214
[root@yistack-cloud-aio ~]# systemctl enable rabbitmq-server.service
Created symlink from /etc/systemd/system/multi-user.target.wants/rabbitmq-server                                                                                        .service to /usr/lib/systemd/system/rabbitmq-server.service.
[root@yistack-cloud-aio ~]# ls -lrt /usr/lib/systemd/system/rabbitmq-server.service
-rw-r--r-- 1 root root 291 9月  23 2015 /usr/lib/systemd/system/rabbitmq-server.service
[root@yistack-cloud-aio ~]# ls -lrt /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service
lrwxrwxrwx 1 root root 47 4月  19 14:52 /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service -> /usr/lib/systemd/system/rabbitmq-server.service