Skip to content

Commit 94e4014

Browse files
authored
Update DB.php
1 parent 91ece61 commit 94e4014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct($host = '', $database = '', $username = '', $passwor
7777
try {
7878
switch ($driver) {
7979
case 'mysql':
80-
$dsn = "mysql:host=$host;port=3306;dbname=$database;charset=utf8";
80+
$dsn = "mysql:host=$host;port=$port;dbname=$database;charset=utf8";
8181
break;
8282
}
8383

0 commit comments

Comments
 (0)