From 080b7a4d7da563c62a8a17ed4543e9ac45e50785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Dequ=C3=A8nes=20=28Duck=29?= Date: Wed, 12 Apr 2017 14:54:56 +0900 Subject: [PATCH 1/2] add UNIX socket support for MySQL --- .env.example | 1 + config/database.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.example b/.env.example index be0753dc3ffb..f0a39f8ad313 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ APP_KEY= DB_DRIVER=mysql DB_HOST=localhost +DB_UNIX_SOCKET=null DB_DATABASE=cachet DB_USERNAME=homestead DB_PASSWORD=secret diff --git a/config/database.php b/config/database.php index b6d967af0e50..1bf4164bcafa 100644 --- a/config/database.php +++ b/config/database.php @@ -64,6 +64,7 @@ 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', null), + 'unix_socket' => env('DB_UNIX_SOCKET', null), 'database' => env('DB_DATABASE', null), 'username' => env('DB_USERNAME', null), 'password' => env('DB_PASSWORD', null), From 8e8ff7a6a4a9fc762939732f42a553d42289e674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Dequ=C3=A8nes=20=28Duck=29?= Date: Wed, 12 Apr 2017 15:06:29 +0900 Subject: [PATCH 2/2] make StyleCI happy --- config/database.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config/database.php b/config/database.php index 1bf4164bcafa..6c63070c4ec9 100644 --- a/config/database.php +++ b/config/database.php @@ -62,18 +62,18 @@ ], 'mysql' => [ - 'driver' => 'mysql', - 'host' => env('DB_HOST', null), + 'driver' => 'mysql', + 'host' => env('DB_HOST', null), 'unix_socket' => env('DB_UNIX_SOCKET', null), - 'database' => env('DB_DATABASE', null), - 'username' => env('DB_USERNAME', null), - 'password' => env('DB_PASSWORD', null), - 'port' => env('DB_PORT', '3306'), - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => env('DB_PREFIX', null), - 'strict' => false, - 'engine' => null, + 'database' => env('DB_DATABASE', null), + 'username' => env('DB_USERNAME', null), + 'password' => env('DB_PASSWORD', null), + 'port' => env('DB_PORT', '3306'), + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => env('DB_PREFIX', null), + 'strict' => false, + 'engine' => null, ], 'pgsql' => [