PHP Mysql Database error. Site Crashing or running VERY slow.
Posted: Fri Sep 08, 2017 7:24 am
I have 3 web sites on my hosting account and they have been working just fine for years and now I installed opencart into two separate folders on my server (One is my live site and one is a test site) and I have started the past few days to notice when I try to visit ANY of my websites (not just the opencart sites) that they will take a VERY long time to load (5 minutes) or they won't load at all. If I wait about an hour and try again they will load fine but after I click on a few links it starts to slow down and finally not load at all. What could be causing this?
When I go to the error log inside opencart I find a list of errors but it is the same 2 errors repeated over and over. They are:
2017-08-31 14:53:46 - PHP Warning: mysqli::mysqli(): (08004/1040): Too many connections in /home1/public_html/system/library/db/mysqli.php on line 7
2017-08-31 14:53:46 - PHP Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home1/public_html/system/library/db/mysqli.php on line 10
When I go to the error log inside opencart I find a list of errors but it is the same 2 errors repeated over and over. They are:
2017-08-31 14:53:46 - PHP Warning: mysqli::mysqli(): (08004/1040): Too many connections in /home1/public_html/system/library/db/mysqli.php on line 7
2017-08-31 14:53:46 - PHP Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home1/public_html/system/library/db/mysqli.php on line 10