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.