Skip to content

Commit 801c323

Browse files
authored
Switch default db host to 127.0.0.1
This reverts octobercms/october@1ec2b69 (bringing back octobercms/october@6c5a83d) as it is more important for the default configuration to be in a working state for most environments than to optimize for performance for some environments. Having the default be `localhost` has caused issues for a large number of people (see octobercms/october#3411, #157, and probably many more). Additionally, this has been the default in Laravel since 5.2 (laravel/laravel#3641) & 5.3 (laravel/laravel@fd42e10).
1 parent ff9c934 commit 801c323

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/database.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'mysql' => [
5656
'driver' => 'mysql',
5757
'engine' => 'InnoDB',
58-
'host' => 'localhost',
58+
'host' => '127.0.0.1',
5959
'port' => 3306,
6060
'database' => 'database',
6161
'username' => 'root',
@@ -68,7 +68,7 @@
6868

6969
'pgsql' => [
7070
'driver' => 'pgsql',
71-
'host' => 'localhost',
71+
'host' => '127.0.0.1',
7272
'port' => 5432,
7373
'database' => 'database',
7474
'username' => 'root',
@@ -80,7 +80,7 @@
8080

8181
'sqlsrv' => [
8282
'driver' => 'sqlsrv',
83-
'host' => 'localhost',
83+
'host' => '127.0.0.1',
8484
'port' => 1433,
8585
'database' => 'database',
8686
'username' => 'root',

0 commit comments

Comments
 (0)