Contact

hs-icon-callcenter
Call
hs-icon-callcenter

Call us

Our support team is happy to help you, be it for technical or administrative issues. We’re there for you!

 

+41 (0)84 800 80 80
(Calls from Switzerland 8 centimes / minute)

Administration

Monday to Saturday
9.00 – 12.00 am
1.30 – 5.30 pm
 

Technical Support

Monday to Friday
8:00 am – 5:30 pm

Saturday
9:00 am – 4:00 pm

hs-icon-doc-write
Write
hs-icon-doc-write

Write to us

To be able to help you as quickly and effectively as possible, we kindly ask that you make your request as specific as possible. And of course you can contact us by email: support@hoststar.com

All fields marked with «*» are mandatory and must be completed.

 

max_user_connections exceeded

Support > Tips & tricks > Database

Meaning:

This error message appears when a user exceeds the maximum number of simultaneous connections allowed to the database. MySQL has a set limit on how many connections a user can have at the same time. Once this limit is reached, the server displays the max_user_connections exceeded message. 

Causes: 

  • Too many simultaneous database connections are active. 
  • The application or website is not properly closing database connections after use. 
  • Inefficient code or unoptimized processes result in a large number of open connections. 

Solutions:

Check and Properly Close Connections 

Make sure all database connections are closed properly after use. Every connection that is no longer needed should be terminated as soon as possible to minimize resource consumption. 

For example, in PHP, you can close the connection after a query like this: 

mysqli_close($connection); 
 

Note: 

It’s Importanz to set the limit for simultaneous connections to match the needs of your application without compromising server performance. Optimized processes and efficient connection management will help prevent this issue from occurring frequently. 

Was this article helpful?