【发布时间】:2014-04-20 08:59:10
【问题描述】:
我想增加mysql中的最大连接数限制。
我当前的文件 /etc/my.cnf 看起来像这样
[mysqld]
innodb_file_per_table=1
当我尝试通过添加此变量来增加连接限制时,我无法重新启动 mysql 服务。
[mysqld]
innodb_file_per_table=1
set-variable=max_connections=10000
【问题讨论】:
-
max_connections=10000 怎么样,顺便说一句,数字太高了
-
@ZdenekMachek 谢谢。现在可以了。我现在将其设置为 2000 而不是 10000