Jump to content

MySQL.php error - Website is now down, please help!


Recommended Posts

Looks like you host may restrict the number of concurrent connections the site can open to the database.

What version of PS are you using (ALWAYS START A POST WITH THIS)

Was it working fine before?
Are you getting many visitors to the site/?

Did you check with your host about this?

Link to comment
Share on other sites

Unless you got a real boost in traffic, or installed a 3rd party module in the last hour, I would say it's related to your host.

If you're on a shared host, someone else may be abusing the database and making it inaccessible to others.

  • Like 1
Link to comment
Share on other sites

Sadly I think neither are the case. Im on a VPN and haven't installed any additional modules in the last few days.

I did however click on the carts link under the customers tab and tried to click on the most recent cart (was an unpaid cart that was for a very high value). Could this have triggered something? Can I empty the cart list as it is up to around 15k, which I presume isn't good for my database.

Link to comment
Share on other sites

Ive just checked the disk space usage section of my site via cpanel and the /cache section of prestashop is massive. It seems to have happened very recently, could this be an issue?

UPDATE
Just been updated by my host. They told me that a large amount of requests caused the stopage in service. Here are a few examples of the errors:

+--------+-------+-----------+-------------+---------+-------+--------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |

| 166099 | **** | localhost | **** | Query | 11106 | Sending data | SELECT MAX(c.`date_add`) AS last_visit
FROM `ps_guest` g
LEFT JOIN `ps_connections` c ON c.id_gu |
| 166124 | **** | localhost | **** | Query | 11027 | Locked | UPDATE `ps_guest` SET `id_operating_system` = '2',`id_web_browser` = '0',`id_customer` = '0',`javasc |
| 166130 | **** | localhost | **** | Query | 10996 | Locked | INSERT INTO `ps_guest` (`id_operating_system`,`id_web_browser`,`id_customer`,`javascript`,`screen_re |
| 166148 | **** | localhost | **** | Query | 10874 | Locked | INSERT INTO `ps_guest` (`id_operating_system`,`id_web_browser`,`id_customer`,`javascript`,`screen_re |
| 166160 | **** | localhost | **** | Query | 10818 | Locked | INSERT INTO `ps_guest` (`id_operating_system`,`id_web_browser`,`id_customer`,`javascript`,`screen_re |
| 166169 | **** | localhost | **** | Query | 10778 | Locked | INSERT INTO `ps_guest` (`id_operating_system`,`id_web_browser`,`id_customer`,`javascript`,`screen_re |

I have edited out the user and database names with ***'s.

Also they have confirmed that my '/home/****/public_html/cache/cachefs/’ directory has increased in size to 7.2 gig. Can anyone recommend what can be deleted to drastically lower that number please.

Thank you.

Link to comment
Share on other sites

×
×
  • Create New...