Skip to content

Commit

Permalink
Merge pull request #2481 from duck-rh/mysql_unix_socket_support
Browse files Browse the repository at this point in the history
add UNIX socket support for MySQL
  • Loading branch information
jbrooksuk committed May 6, 2017
2 parents c3b053f + f56c205 commit 08ca427
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 12 additions & 11 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down

0 comments on commit 08ca427

Please sign in to comment.