Error

We're sorry, but an unhandled error occurred. Please see the details below.

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

/var/www/clients/www.yblac.co.uk/htdocs/site/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php line 47

	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
	/**
	 * Get the default PDO connection options.
	 *
	 * @return array

Stack trace

# Called Code Document Line
37 PDO->__construct() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php 47
36 Illuminate\Database\Connectors\Connector->createConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php 20
35 Illuminate\Database\Connectors\MySqlConnector->connect() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php 59
34 Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php 47
33 Illuminate\Database\Connectors\ConnectionFactory->make() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php 161
32 Illuminate\Database\DatabaseManager->makeConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php 63
31 Illuminate\Database\DatabaseManager->connection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 2831
30 Illuminate\Database\Eloquent\Model::resolveConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 2797
29 Illuminate\Database\Eloquent\Model->getConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 1783
28 Illuminate\Database\Eloquent\Model->newBaseQueryBuilder() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 1699
27 Illuminate\Database\Eloquent\Model->newQuery() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 3020
26 Illuminate\Database\Eloquent\Model->__call() http://www.yblac.co.uk/vendor/october/rain/src/Extension/ExtendableTrait.php 290
25 October\Rain\Database\Model->extendableCall() http://www.yblac.co.uk/vendor/october/rain/src/Database/Model.php 347
24 October\Rain\Database\Model->__call()
23 System\Models\RequestLog->where()
22 call_user_func_array() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 3036
21 Illuminate\Database\Eloquent\Model::__callStatic() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 555
20 System\Models\RequestLog::where() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php 555
19 Illuminate\Database\Eloquent\Model::firstOrNew() http://www.yblac.co.uk/modules/system/models/RequestLog.php 36
18 System\Models\RequestLog::add() http://www.yblac.co.uk/modules/cms/classes/Controller.php 158
17 Cms\Classes\Controller->run()
16 call_user_func_array() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/Controller.php 231
15 Illuminate\Routing\Controller->callAction() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php 93
14 Illuminate\Routing\ControllerDispatcher->call() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php 62
13 Illuminate\Routing\ControllerDispatcher->dispatch() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/Router.php 962
12 Illuminate\Routing\Router->Illuminate\Routing\{closure}()
11 call_user_func_array() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/Route.php 109
10 Illuminate\Routing\Route->run() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/Router.php 1028
9 Illuminate\Routing\Router->dispatchToRoute() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Routing/Router.php 996
8 Illuminate\Routing\Router->dispatch() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 776
7 Illuminate\Foundation\Application->dispatch() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 746
6 Illuminate\Foundation\Application->handle() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Session/Middleware.php 72
5 Illuminate\Session\Middleware->handle() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php 47
4 Illuminate\Cookie\Queue->handle() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php 51
3 Illuminate\Cookie\Guard->handle() http://www.yblac.co.uk/vendor/stack/builder/src/Stack/StackedHttpKernel.php 23
2 Stack\StackedHttpKernel->handle() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 642
1 Illuminate\Foundation\Application->run() http://www.yblac.co.uk/index.php 40