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
This commit is contained in:
Samuel Georges 2017-01-24 08:36:50 +11:00
parent 0251d1dd83
commit 6c5a83de89
1 changed files with 3 additions and 3 deletions

View File

@ -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',