Skip to content

Commit

Permalink
Merge pull request #54 from swiftotter/53-access-denied-during-mysqldump
Browse files Browse the repository at this point in the history
#53: Added `--no-tablespaces` to `mysqldump` commands
  • Loading branch information
JesseMaxwell authored Dec 8, 2022
2 parents 8da0872 + b6027c2 commit ca7b03b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Engines/MySql/Export/CommandAssembler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/Engines/MySql/Sandbox/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()} ";
Expand Down

0 comments on commit ca7b03b

Please sign in to comment.