Skip to content

Commit 9edc4d2

Browse files
authored
fix(database): revert broken mysql dsn changes (#1689)
1 parent 0fb947a commit 9edc4d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/database/src/Config/MysqlConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class MysqlConfig implements DatabaseConfig
1313
{
1414
public string $dsn {
1515
get => sprintf(
16-
'mysql:host=%s;port=%s;dbname=%s',
16+
'mysql:host=%s:%s;dbname=%s',
1717
$this->host,
1818
$this->port,
1919
$this->database,

packages/database/tests/Config/DatabaseConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function provide_database_drivers(): Generator
4444
password: 'secret', // @mago-expect lint:no-literal-password
4545
database: 'tempest',
4646
),
47-
'mysql:host=localhost;port=3307;dbname=tempest',
47+
'mysql:host=localhost:3307;dbname=tempest',
4848
'user',
4949
'secret',
5050
];

0 commit comments

Comments
 (0)