[Unknown Error] Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory

GET /about-us/blog/sherburn-high-school/?filter=news

Line 246 in /var/www/vhosts/fsedesign.co.uk/httpdocs/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