centos7 mariadb mysql max_connections=214 无法修改的问题

 

/etc/my.cnf.d/mariadb-server.cnf

[mysqld]

max_connections = 10000

重启mariadb后 max_connections = 214 。解决问题方法如下:

vi /usr/lib/systemd/system/mariadb.service

[Service]

LimitNOFILE=65535

LimitNPROC=65535

保存,退出。

systemctl daemon-reload

systemctl restart mariadb.service

 

进入 mariadb client 

show variables like '%max_connections%';

返回值  10000.问题解决。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-12-13
  • 2022-12-23
  • 2022-01-05
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案