简体   繁体   English

如何在etc/my.cnf中增加Mysql Connection限制

[英]How to increase the Mysql Connection limit in etc/my.cnf

I want to increase the max connection limit in mysql.我想增加mysql中的最大连接限制。

My current file /etc/my.cnf looks like this我当前的文件/etc/my.cnf看起来像这样

[mysqld]
innodb_file_per_table=1

When I try to increase the connection limit by adding this variable then I cannot restart mysql service.当我尝试通过添加此变量来增加连接限制时,我无法重新启动 mysql 服务。

[mysqld]
innodb_file_per_table=1
set-variable=max_connections=10000

You can change the limit from your mysql config file which is located in where you have installed the mysql server database, .ini file您可以从您的 mysql 配置文件中更改限制,该文件位于您安装 mysql 服务器数据库的位置,.ini 文件

search for the max_connection variable and change the value as per your request搜索 max_connection 变量并根据您的要求更改值

and you have restart your server after changing并且您在更改后重新启动了服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM