Warning: PDO::query(): MySQL server has gone away in /var/www/html/classes/db/DbPDO.php on line 165

Warning: PDO::query(): Error reading result set's header in /var/www/html/classes/db/DbPDO.php on line 165

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