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
36 PDO->__construct() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php 47
35 Illuminate\Database\Connectors\Connector->createConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php 20
34 Illuminate\Database\Connectors\MySqlConnector->connect() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php 59
33 Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php 47
32 Illuminate\Database\Connectors\ConnectionFactory->make() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php 161
31 Illuminate\Database\DatabaseManager->makeConnection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php 63
30 Illuminate\Database\DatabaseManager->connection() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Support/Facades/Schema.php 26
29 Illuminate\Support\Facades\Schema::getFacadeAccessor() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php 116
28 Illuminate\Support\Facades\Facade::getFacadeRoot() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php 200
27 Illuminate\Support\Facades\Facade::__callStatic() http://www.yblac.co.uk/modules/backend/controllers/Index.php 31
26 Illuminate\Support\Facades\Schema::hasColumn() http://www.yblac.co.uk/modules/backend/controllers/Index.php 31
25 Backend\Controllers\Index->__construct()
24 ReflectionClass->newInstanceArgs() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Container/Container.php 545
23 Illuminate\Container\Container->build() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Container/Container.php 432
22 Illuminate\Container\Container->make() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 463
21 Illuminate\Foundation\Application->make() http://www.yblac.co.uk/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php 208
20 Illuminate\Support\Facades\Facade::__callStatic() http://www.yblac.co.uk/modules/backend/classes/BackendController.php 93
19 Illuminate\Support\Facades\App::make() http://www.yblac.co.uk/modules/backend/classes/BackendController.php 93
18 Backend\Classes\BackendController->findController() http://www.yblac.co.uk/modules/backend/classes/BackendController.php 49
17 Backend\Classes\BackendController->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