max_user_connections or ip connection limit exceed

2019-03-06 19:14发布

问题:

I am getting following "PHP Error Message" :

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

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.

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

回答1:

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

Here are the links for your references
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.