diff --git a/src/Databases/MongoDb.php b/src/Databases/MongoDb.php index e22866c..cdd20f1 100644 --- a/src/Databases/MongoDb.php +++ b/src/Databases/MongoDb.php @@ -66,11 +66,11 @@ public function getDumpCommand(string $filename): string ]; if ($this->userName) { - $command[] = "--username '{$this->userName}'"; + $command[] = "--username {$quote}{$this->userName}{$quote}"; } if ($this->password) { - $command[] = "--password '{$this->password}'"; + $command[] = "--password {$quote}{$this->password}{$quote}"; } if (isset($this->host)) {