Skip to content

Commit 7b40b7c

Browse files
author
Ethan
committed
port
1 parent d1fb21c commit 7b40b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Connection
4242
'password' => '',
4343
),
4444
array(
45-
'host' => '192.168.0.2',
45+
'host' => '192.168.0.2:3307',
4646
'username' => 'root',
4747
'password' => '',
4848
),*/
@@ -139,7 +139,7 @@ protected function makePdo(array $config)
139139
if (isset($config['dsn'])) {
140140
$dsn = $config['dsn'];
141141
} else {
142-
$dsn = 'mysql:host=' . $config['host'] . ';port=' . $config['port'] . ';dbname=' . $config['database'];
142+
$dsn = 'mysql:host=' . $config['port'] . ';port=' . $config['host'] . ';dbname=' . $config['database'];
143143
}
144144

145145
$pdo = new PDO($dsn, $config['username'], $config['password'], $config['options']);

0 commit comments

Comments
 (0)