Warning: PDO::query(): MySQL server has gone away in /var/www/admin/www/demo2.best-kit.com/presta1724/classes/db/DbPDO.php on line 134

Warning: PDO::query(): Error reading result set's header in /var/www/admin/www/demo2.best-kit.com/presta1724/classes/db/DbPDO.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /var/www/admin/www/demo2.best-kit.com/presta1724/classes/db/DbPDO.php:134) in /var/www/admin/www/demo2.best-kit.com/presta1724/classes/exception/PrestaShopException.php on line 41

[PrestaShopException]

Link to database cannot be established:SQLSTATE[HY000] [2002] Connection refused
at line 102 in file classes/db/DbPDO.php

97.     public function connect()
98.     {
99.         try {
100.             $this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5);
101.         } catch (PDOException $e) {
102.             throw new PrestaShopException('Link to database cannot be established:'.$e->getMessage());
103.         }
104. 
105.         // UTF-8 support
106.         if ($this->link->exec('SET NAMES \'utf8\'') === false) {
107.             throw new PrestaShopException('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.');