Warning: PDO::query(): MySQL server has gone away in /home/kiankala/public_html/classes/db/DbPDO.php on line 166

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

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

[PrestaShopException]

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

132.     public function connect()
133.     {
134.         try {
135.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
136.         } catch (PDOException $e) {
137.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
138.         }
139. 
140.         $this->link->exec('SET SESSION sql_mode = \'\'');
141. 
142.         return $this->link;