1. Home
  2. How To
  3. Shared Hosting
  4. Linux Hosting (CPanel)
  5. Prompted Warning: Too many connections for Linux Hosting

Prompted Warning: Too many connections for Linux Hosting

Issue

Unable to connect to database server

Symptoms

Warning: mysql_connect(): Too many connections in /home/xxxx/public_html/xxxx/xxx.php on line xxx 

Cause

Your web hosting account has reached the maximum database concurrent connections limit

Workaround

When your site has reached the maximum database concurrent connections you will see the error as above.

– for the old Windows/Linux Standard Hosting Plan (Limit of 20 Max. Database Concurrent Connection)

– for the new Windows/Linux Starter/Advanced Hosting plan (Limit of 45 Max. Database Concurrent Connection)

Please optimise your codes as to ensure each open database connection is closed after retrieval / update of database.

Additional Information

You may also consider to upgrade to our DIY Cloud Server / Bandwidth & Rackspace package that has no limit on the Maximum Database Concurrent Connection.

Updated on September 27, 2018

Was this article helpful?

Related Articles

Leave a Comment

Need Help?
Submit a ticket to us and let our professional team assists you

Support Billing Sales
Support
Billing
Sales