Warning: PDO::query(): MySQL server has gone away in /home/prestashop/web/classes/db/DbPDO.php on line 165

Warning: PDO::query(): Error reading result set's header in /home/prestashop/web/classes/db/DbPDO.php on line 165

Fatal error: Uncaught PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] Connection refused in /home/prestashop/web/classes/db/DbPDO.php:136 Stack trace: #0 /home/prestashop/web/classes/db/Db.php(379): DbPDOCore->connect() #1 /home/prestashop/web/classes/db/Db.php(663): DbCore->query('\n SE...') #2 /home/prestashop/web/classes/shop/ShopUrl.php(182): DbCore->getRow('\n SE...') #3 /home/prestashop/web/classes/shop/ShopUrl.php(198): ShopUrlCore::cacheMainDomainForShop(NULL) #4 /home/prestashop/web/classes/Tools.php(333): ShopUrlCore::getMainShopDomain() #5 /home/prestashop/web/classes/Link.php(66): ToolsCore::getShopDomain(true) #6 /home/prestashop/web/config/config.inc.php(262): LinkCore->__construct('https://', 'https://') #7 /home/prestashop/web/index.php(27): require('/home/prestasho...') #8 {main} thrown in /home/prestashop/web/classes/db/DbPDO.php on line 136