Knowledgebase: Linux Hosting (CPanel)
Prompted Warning: Too many connections for Linux Hosting
Posted by - NA - on 04 August 2010 12:20 PM
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.

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).