[Unknown Error] Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused

GET /blog/blog-list-grid-type-3/page/2/

Line 246 in /var/www/vhosts/lamporthall.co.uk/public_html/vendor/silverstripe/framework/src/ORM/Connect/PDOConnector.php

Source

237                 $options[PDO::ATTR_EMULATE_PREPARES] = (bool)$isEmulatePrepares;
238             }
239 
240             // Disable stringified fetches
241             $options[PDO::ATTR_STRINGIFY_FETCHES] = false;
242         }
243 
244         // May throw a PDOException if fails
245         $this->pdoConnection = new PDO(
246             $this->driver . ':' . implode(';', $dsn),
247             empty($parameters['username']) ? '' : $parameters['username'],
248             empty($parameters['password']) ? '' : $parameters['password'],
249             $options
250         );
251 
252         // Show selected DB if requested

Trace