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

GET /Security/login?BackURL=/furniture/modern-classics/benchairs/benchairs-908-lounge-dining-armchair/

Line 249 in /home2/taylorsc/public_html/vendor/silverstripe/framework/src/ORM/Connect/PDOConnector.php

Source

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
253         if ($this->pdoConnection && $selectDB && !empty($parameters['database'])) {
254             $this->databaseName = $parameters['database'];
255         }

Trace