【问题标题】:How to increase the Mysql Connection limit in etc/my.cnf如何在 etc/my.cnf 中增加 Mysql 连接限制
【发布时间】: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

标签: mysql linux centos6


【解决方案1】:

您可以从您的 mysql 配置文件中更改限制,该文件位于您安装 mysql 服务器数据库的位置,.ini 文件

搜索 max_connection 变量并根据您的要求更改值

更改后您已重新启动服务器

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多