Warning: PDO::query(): MySQL server has gone away in /home/fieldthemes/public_html/demo/fsport/classes/db/DbPDO.php on line 156

Warning: PDO::query(): Error reading result set's header in /home/fieldthemes/public_html/demo/fsport/classes/db/DbPDO.php on line 156

Warning: Cannot modify header information - headers already sent by (output started at /home/fieldthemes/public_html/demo/fsport/classes/db/DbPDO.php:156) in /home/fieldthemes/public_html/demo/fsport/classes/exception/PrestaShopException.php on line 41

[PrestaShopException]

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

122.     public function connect()
123.     {
124.         try {
125.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126.         } catch (PDOException $e) {
127.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128.         }
129. 
130.         $this->link->exec('SET SESSION sql_mode = \'\'');
131. 
132.         return $this->link;