PrestaShopException {#43
  #message: "Link to database cannot be established: SQLSTATE[HY000] [2002] Connection refused"
  #code: 0
  #file: "/var/www/html/s-e/classes/db/DbPDO.php"
  #line: 136
  trace: {
    /var/www/html/s-e/classes/db/DbPDO.php:136 {} catch (PDOException $e) {    throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());}
    }
    /var/www/html/s-e/classes/db/Db.php:379 {if (!$this->result && $this->getNumberError() == 2006) {    if ($this->connect()) {        $this->result = $this->_query($sql);
    }
    /var/www/html/s-e/classes/db/Db.php:663 {
      › 
      › $this->result = $this->query($sql);if (!$this->result) {
      arguments: {
        $sql: """
          \n
                      SELECT domain, domain_ssl\n
                      FROM sk_shop_url\n
                      WHERE main = 1\n
                      AND id_shop = 1 LIMIT 1
          """
      }
    }
    /var/www/html/s-e/classes/shop/ShopUrl.php:182 {WHERE main = 1AND id_shop = ' . ($id_shop !== null ? (int) $id_shop : (int) Context::getContext()->shop->id));if (!empty($row)) {
      arguments: {
        $sql: """
          \n
                      SELECT domain, domain_ssl\n
                      FROM sk_shop_url\n
                      WHERE main = 1\n
                      AND id_shop = 1 LIMIT 1
          """
      }
    }
    /var/www/html/s-e/classes/shop/ShopUrl.php:198 {{    ShopUrl::cacheMainDomainForShop($id_shop);arguments: {
        $id_shop: null
      }
    }
    /var/www/html/s-e/classes/Tools.php:333 {{    if (!$domain = ShopUrl::getMainShopDomain()) {        $domain = Tools::getHttpHost();
    }
    /var/www/html/s-e/classes/Link.php:66 {if (!defined('_PS_BASE_URL_')) {    define('_PS_BASE_URL_', Tools::getShopDomain(true));}
      arguments: {
        $http: true
      }
    }
    /var/www/html/s-e/config/config.inc.php:262 {$https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';$context->link = new Link($https_link, $https_link);arguments: {
        $protocolLink: "https://"
        $protocolContent: "https://"
      }
    }
    /var/www/html/s-e/index.php:28 {
      › 
      › require dirname(__FILE__).'/config/config.inc.php';\rDispatcher::getInstance()->dispatch();\r
      arguments: {
        "/var/www/html/s-e/config/config.inc.php"
      }
    }
  }
}