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

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

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

[PrestaShopException]

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

114.     public function connect()
115.     {
116.         try {
117.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
118.         } catch (PDOException $e) {
119.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
120.         }
121. 
122.         $this->link->exec('SET SESSION sql_mode = \'\'');
123. 
124.         return $this->link;