Add ability to customize port DB (#655)

* Summary: Add the ability to configure DB ports

* Summary: Reorder port

* Summary: Added example env for DB_PORT customization

Changesets:
- Added DB_PORT and explain about customization
This commit is contained in:
leowmjw 2017-12-03 18:40:35 +08:00 committed by Phan An
parent a5e3059e89
commit baa5b7af13
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@
# sqlsrv (Microsoft SQL Server)
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=koel
DB_USERNAME=koel
DB_PASSWORD=SoSecureMuchWow

View file

@ -48,6 +48,7 @@ return [
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 3306),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
@ -60,6 +61,7 @@ return [
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 5432),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
@ -71,6 +73,7 @@ return [
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 1433),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),