超出 max_user_connections 或 ip 连接限制 [英] max_user_connections or ip connection limit exceeded

查看:52
本文介绍了超出 max_user_connections 或 ip 连接限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下PHP 错误消息":

I am getting following "PHP Error Message" :

用户 ** 在/home/*/ 中已有超过 'max_user_connections' 个活动连接strong>/* 在第 6 行或

User ** already has more than 'max_user_connections' active connections in /home/*//* on line 6 or

对于我的网站 www.**.com,在重新加载页面 3-4 次后会出现此错误.早些时候这个错误没有出现.那么有人能告诉我这个错误是与 PHP 还是 DB 相关的.

for my website www.**.com, and this error goes after reloading the page for 3-4 times. Earlier this error was not coming. So can somebody tell me whether this error relates to PHP or DB.

我正在使用 freehosting,如 1freehosting.com 或 000webhost.com

i am using freehosting like 1freehosting.com or 000webhost.com

推荐答案

当允许连接服务器的最大用户数已经达到时,您会收到 max_user_connections 消息.

You receive max_user_connections message when the maximum number of users allowed to connect the server are already there.

这是您参考的链接
http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_user_connections
http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html

您可以增加允许的连接数或
而不是为每个人打开新的连接.为什么不对所有查询使用相同的连接.

You can either increase the number of connections allowed or
Instead of opening new connection for everyone. Why dont you use same connection for all queries.

这篇关于超出 max_user_connections 或 ip 连接限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆