diff --git a/src/Illuminate/Database/Schema/MySqlSchemaState.php b/src/Illuminate/Database/Schema/MySqlSchemaState.php
index <HASH>..<HASH> 100644
--- a/src/Illuminate/Database/Schema/MySqlSchemaState.php
+++ b/src/Illuminate/Database/Schema/MySqlSchemaState.php
@@ -149,6 +149,12 @@ class MySqlSchemaState extends SchemaState
                 ), $output, $variables);
             }
 
+            if (Str::contains($e->getMessage(), ['set-gtid-purged'])) {
+                return $this->executeDumpProcess(Process::fromShellCommandLine(
+                    str_replace(' --set-gtid-purged=OFF', '', $process->getCommandLine())
+                ), $output, $variables);
+            }
+
             throw $e;
         }
[8.x] Fix for #<I> artisan schema:dump error (#<I>)

* It mysqldump errors because "set-gtid-purged" isn't a valid option retry without it.



* Update MySqlSchemaState.php