Home > Database > Mysql Tutorial > body text

mysql出现too many connections错误提示

WBOY
Release: 2016-06-07 17:51:27
Original
1270 people have browsed it

昨天在本地测试一个网站时出现too many connections提示,我就奇怪了此网站怎么会这样,看英文意思是连接太多了,下面是我baidu查的笔记与解决办法.

错误提示如:

 代码如下 复制代码

$ -uroot
ERROR 1040 (00000): Too many connections

因为我用的是mysql5服务器是win2000这个办法好解决了,找到我mysql安装目录如C:windowsmysql找到my.ini配置文件了。

ctrl+f搜索max_connections,原因找到了,因为你的mysql安装目录下的my.ini中设定的并发连接数太少或者系统繁忙导致连接数被占满,这里不知道什么时间被设计成2了,下面我把它改成

 代码如下 复制代码

max_connections = 1000
max_user_connections=300

最后重启就可以了。

上面讲得是有mysql服务器权限的,如果没有的朋友可以联系空间商哦。

本站原创教程转载必须注明来源于

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!