Skip to content

Commit

Permalink
Ignore tablespaces in dump (#39126)
Browse files Browse the repository at this point in the history
Less likely to hit permissions issues in newer versions of MySQL
  • Loading branch information
ethanclevenger91 authored Oct 7, 2021
1 parent a683198 commit e5bfb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/MySqlSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function load($path)
*/
protected function baseDumpCommand()
{
$command = 'mysqldump '.$this->connectionString().' --skip-add-locks --skip-comments --skip-set-charset --tz-utc';
$command = 'mysqldump '.$this->connectionString().' --no-tablespaces --skip-add-locks --skip-comments --skip-set-charset --tz-utc';

if (! $this->connection->isMaria()) {
$command .= ' --column-statistics=0 --set-gtid-purged=OFF';
Expand Down

0 comments on commit e5bfb69

Please sign in to comment.