diff --git a/Classes/DBAL/SimpleDBAL.php b/Classes/DBAL/SimpleDBAL.php index ac1e30c..e8492b4 100644 --- a/Classes/DBAL/SimpleDBAL.php +++ b/Classes/DBAL/SimpleDBAL.php @@ -40,7 +40,7 @@ public function buildCmd(string $driver, ?string $host, int $port, string $usern public function buildDumpCmd(string $driver, ?string $host, int $port, string $username, string $password, string $database): string { if ($driver === 'pdo_mysql') { - return sprintf('mysqldump --single-transaction --add-drop-table --host=%s --port=%s --user=%s --password=%s %s', escapeshellarg($host), escapeshellarg($port), escapeshellarg($username), escapeshellarg($password), escapeshellarg($database)); + return sprintf('mysqldump --single-transaction --add-drop-table --no-tablespaces --host=%s --port=%s --user=%s --password=%s %s', escapeshellarg($host), escapeshellarg($port), escapeshellarg($username), escapeshellarg($password), escapeshellarg($database)); } else if ($driver === 'pdo_pgsql') { return sprintf('PGPASSWORD=%s pg_dump --host=%s --port=%s --username=%s --dbname=%s --schema=public --no-owner --no-privileges', escapeshellarg($password), escapeshellarg($host), escapeshellarg($port), escapeshellarg($username), escapeshellarg($database)); }