The max number of simultaneous connections from a database user to a MySQL database is set to 30 on our servers. This generally is not an issue as MySQL connections rarely last for longer than a fraction of a second, so having thirty open at once is rare. If you are getting a max_user_connections error:

  • Your code is opening the connection to the database, but not closing it. Here is an article with more information about closing your database connections.
  • Your software is configured to use pconnect or Persistent Connections. Please consult your documentation to find out how to disable pconnect.

Most of the time the problem is due to the second scenario (using pconnect), so be sure to check your documentation to prevent getting max_user_connections errors.

It's important to note that max_user_connections and max_connections are not the same thing. While max_user_connections is the maximum number of connections to a database from a database user, max_connections is server wide setting.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}