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

MySQL出现too many connections(1040)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:53:00
Original
1194 people have browsed it

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)错误了。

Related labels:
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template