From b6027c2a06aa0566b4fcf1b8649df74b95667aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Biarda?= <1135380+michalbiarda@users.noreply.github.com> Date: Thu, 8 Dec 2022 18:13:56 +0100 Subject: [PATCH] Added `--no-tablespaces` to `mysqldump` commands --- src/Engines/MySql/Export/CommandAssembler.php | 1 + src/Engines/MySql/Sandbox/Export.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Engines/MySql/Export/CommandAssembler.php b/src/Engines/MySql/Export/CommandAssembler.php index 56ac06d..0a9b297 100644 --- a/src/Engines/MySql/Export/CommandAssembler.php +++ b/src/Engines/MySql/Export/CommandAssembler.php @@ -57,6 +57,7 @@ private function getSingleCommand( "mysqldump --user=\"{$connection->getUser()}\"", "--password=\"{$connection->getPassword()}\"", "--single-transaction", + "--no-tablespaces", "--host={$connection->getHost()}", $connection->getDatabase(), implode(' ', $tables) diff --git a/src/Engines/MySql/Sandbox/Export.php b/src/Engines/MySql/Sandbox/Export.php index af99c1f..800bc60 100755 --- a/src/Engines/MySql/Sandbox/Export.php +++ b/src/Engines/MySql/Sandbox/Export.php @@ -104,7 +104,8 @@ private function assembleCommand(string $environmentName, array $ignoredTables): "mysqldump --user={$this->connection->getUser()}", "--password={$this->connection->getPassword()}", "--host={$this->connection->getHost()}", - "--port={$this->connection->getPort()}" + "--port={$this->connection->getPort()}", + "--no-tablespaces" ], $this->getIgnoredTables($ignoredTables))); $command .= " {$this->connection->getDatabase()} ";