Skip to content

Commit cdc3f15

Browse files
Hidde Boomsmanicoschoenmaker
authored andcommitted
add password for gitlab and correct hostname to host param (#9)
1 parent 01fcd41 commit cdc3f15

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/MysqlPersistentConnection.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ public function getConnectionUrl(): string
115115
}
116116

117117
return sprintf(
118-
'mysql://%s@%s:%s/%s?server_version=%s',
118+
'mysql://%s:%s@%s:%s/%s?server_version=%s',
119119
$this->connection_params['user'] ?? get_current_user(),
120-
$this->connection_params['hostname'] ?? 'localhost',
120+
$this->connection_params['password'] ?? '',
121+
$this->connection_params['host'] ?? 'localhost',
121122
$this->connection_params['port'] ?? 3306,
122123
$this->connection_params['dbname'] ?? 'test',
123124
$this->connection_params['server_version'] ?? '5.6'

0 commit comments

Comments
 (0)