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..6c63070c4ec9 100644 --- a/config/database.php +++ b/config/database.php @@ -62,17 +62,18 @@ ], 'mysql' => [ - 'driver' => 'mysql', - 'host' => env('DB_HOST', 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, + '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, ], 'pgsql' => [