Why do I get a max_user_connections error?

The max number of simultaneous connections to your MySQL database is 25. This normally is not a problem because MySQL connections are made and destroyed within a fraction of a second. If you are getting a max_user_connections error, it could be:

  • Your code is opening the connection to the database, but not closing it. Please see the following link for more help with properly opening and closing your database connections: https://www.w3schools.com/php/php_mysql_connect.asp
  • Your software is configured to use pconnect / Persistent Connections. Please read the script/software documentation or contact the script maker of your software to find out how to disable pconnect.

For the most part the problem is due to pconnect.

  • max_user_connections, max user connections, mysql error, pconnect, simultaneous connections, databse
  • 58 Users Found This Useful
Was this answer helpful?

Related Articles

Do you have a limit of accounts you allow on each server?

Yes 150-300 is the limit for shared servers. Most sit with about 100 or 200, if an account...

What is web hosting?

Web Hosting is a space on the internet where you put content for the internet to see. I like to...

Where is the servers located?

The main servers are located in Los Angeles. We also have backup servers in Las Vegas and round...

Where is the servers located?

The main servers are located in Los Angeles. We also have backup servers in Las Vegas and round...

How is your web hosting so fast?

To be honest it's not one big thing although there is a couple more expensive things we do to be...