Home > Database > Mysql Tutorial > body text

mysql 1040 Too many connections错误

WBOY
Release: 2016-06-07 17:53:09
Original
1172 people have browsed it

本文章来介绍在windows与linux系统下mysql出现这种问题的解决方法,这里主要是只要配置一下max_connections参数即可。


1、Windows系统下的mysql

修改配置文件“my.ini”,中的“max_connections”的值,将值改大即可。

max_connections = 1000

2、Linux系统下的mysql

修改配置文件“my.cnf”中的“max_connections”的值,将值改大即可。
 
max_connections = 1000

重启一下mysql即可应用配置了。

小提示,max_connections在mySQL服务器允许的最大连接数16384哦,如果你是window服务器这里还需要看windows最大性能来配置了。

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template