Skip to content

Commit 08ca427

Browse files
authoredMay 6, 2017
Merge pull request #2481 from duck-rh/mysql_unix_socket_support
add UNIX socket support for MySQL
2 parents c3b053f + f56c205 commit 08ca427

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
 

‎.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ APP_KEY=
55

66
DB_DRIVER=mysql
77
DB_HOST=localhost
8+
DB_UNIX_SOCKET=null
89
DB_DATABASE=cachet
910
DB_USERNAME=homestead
1011
DB_PASSWORD=secret

‎config/database.php

+12-11
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,18 @@
6262
],
6363

6464
'mysql' => [
65-
'driver' => 'mysql',
66-
'host' => env('DB_HOST', null),
67-
'database' => env('DB_DATABASE', null),
68-
'username' => env('DB_USERNAME', null),
69-
'password' => env('DB_PASSWORD', null),
70-
'port' => env('DB_PORT', '3306'),
71-
'charset' => 'utf8',
72-
'collation' => 'utf8_unicode_ci',
73-
'prefix' => env('DB_PREFIX', null),
74-
'strict' => false,
75-
'engine' => null,
65+
'driver' => 'mysql',
66+
'host' => env('DB_HOST', null),
67+
'unix_socket' => env('DB_UNIX_SOCKET', null),
68+
'database' => env('DB_DATABASE', null),
69+
'username' => env('DB_USERNAME', null),
70+
'password' => env('DB_PASSWORD', null),
71+
'port' => env('DB_PORT', '3306'),
72+
'charset' => 'utf8',
73+
'collation' => 'utf8_unicode_ci',
74+
'prefix' => env('DB_PREFIX', null),
75+
'strict' => false,
76+
'engine' => null,
7677
],
7778

7879
'pgsql' => [

0 commit comments

Comments
 (0)
Please sign in to comment.