From 6c5a83de89dfb0704ed2b0d2b83ad90ecd65c15f Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 24 Jan 2017 08:36:50 +1100 Subject: [PATCH] Use 127.0.0.1 in favor of localhost - Speed improvement - Consistency with redis config - Fixes issue with XAMPP on macOS, see: http://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory --- config/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.php b/config/database.php index 3835c07b6..09b250965 100644 --- a/config/database.php +++ b/config/database.php @@ -54,7 +54,7 @@ return [ 'mysql' => [ 'driver' => 'mysql', - 'host' => 'localhost', + 'host' => '127.0.0.1', 'port' => '', 'database' => 'database', 'username' => 'root', @@ -66,7 +66,7 @@ return [ 'pgsql' => [ 'driver' => 'pgsql', - 'host' => 'localhost', + 'host' => '127.0.0.1', 'port' => '', 'database' => 'database', 'username' => 'root', @@ -78,7 +78,7 @@ return [ 'sqlsrv' => [ 'driver' => 'sqlsrv', - 'host' => 'localhost', + 'host' => '127.0.0.1', 'port' => '', 'database' => 'database', 'username' => 'root',