Home >Database >Mysql Tutorial >MySQL出现too many connections(1040)

MySQL出现too many connections(1040)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:53:001196browse

1、如果你的MySQL数据库使用my.cnf文件配置 找到文件 /etc/my.cnf 编辑器打开,修改max_connections的为10000。实际MySQL服务器允许的最大连接数16384。 set-variable = max_connections=10000 2、如果你的MySQL数据库使用my.ini文件配置 找到文件/bin/my.in

1、如果你的MySQL数据库使用my.cnf文件配置

找到文件 /etc/my.cnf

编辑器打开,修改max_connections的值为10000。实际MySQL服务器允许的最大连接数16384。

set-variable = max_connections=10000

2、如果你的MySQL数据库使用my.ini文件配置

找到文件/bin/my.ini(不一定在这里,根据你的数据库情况)

在[mysqld]里面增加
max_connections=10000
如果原来就有,那么可以修改max_connections的值。

3、重启mysql数据库。

这样就可以解决MySQL出现too many connections(1040)错误了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:ASP连MYSQLNext article:深入MYSQL字符数字转换的详解-