Skip to content

Commit 621a02f

Browse files
committed
add MariaDB support
1 parent 7c9d192 commit 621a02f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/Sql/MySQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function dump(): string
4040
'--password="' . ($this->config['password'] ?? '') . '"',
4141
'--default-character-set=' . ($this->config['encoding'] ?? 'utf8mb4'),
4242
'--host=' . ($this->config['host'] ?? 'localhost'),
43+
'--port=' . ($this->config['port'] ?? 3306),
4344
'--databases',
4445
$this->config['database'],
4546
];

src/Sql/PostgreSQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function dump(): string
2828
'PGPASSFILE=' . $passFile,
2929
$this->command,
3030
'--host=' . ($this->config['host'] ?? 'localhost'),
31+
'--port=' . ($this->config['port'] ?? 5432),
3132
'--username=' . ($this->config['username'] ?? ''),
3233
'--dbname="' . ($this->config['database'] ?? '') . '"',
3334
];

0 commit comments

Comments
 (0)