Skip to content

Commit cfced66

Browse files
authored
Merge pull request #4 from xuchunlong/master
Add Database Link Port
2 parents 638aa8c + 7a1d66c commit cfced66

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ APP_NAME=skeleton
22

33
DB_DRIVER=mysql
44
DB_HOST=localhost
5+
DB_PORT=3306
56
DB_DATABASE=hyperf
67
DB_USERNAME=root
78
DB_PASSWORD=

config/autoload/databases.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'driver' => env('DB_DRIVER', 'mysql'),
1616
'host' => env('DB_HOST', 'localhost'),
1717
'database' => env('DB_DATABASE', 'hyperf'),
18+
'port' => env('DB_PORT', 3306),
1819
'username' => env('DB_USERNAME', 'root'),
1920
'password' => env('DB_PASSWORD', ''),
2021
'charset' => env('DB_CHARSET', 'utf8'),

0 commit comments

Comments
 (0)