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
时间: 2024-10-09 20:19:56