We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c9d192 commit 621a02fCopy full SHA for 621a02f
2 files changed
src/Sql/MySQL.php
@@ -40,6 +40,7 @@ public function dump(): string
40
'--password="' . ($this->config['password'] ?? '') . '"',
41
'--default-character-set=' . ($this->config['encoding'] ?? 'utf8mb4'),
42
'--host=' . ($this->config['host'] ?? 'localhost'),
43
+ '--port=' . ($this->config['port'] ?? 3306),
44
'--databases',
45
$this->config['database'],
46
];
src/Sql/PostgreSQL.php
@@ -28,6 +28,7 @@ public function dump(): string
28
'PGPASSFILE=' . $passFile,
29
$this->command,
30
31
+ '--port=' . ($this->config['port'] ?? 5432),
32
'--username=' . ($this->config['username'] ?? ''),
33
'--dbname="' . ($this->config['database'] ?? '') . '"',
34
0 commit comments