diff --git a/src/Illuminate/Database/Schema/MySqlSchemaState.php b/src/Illuminate/Database/Schema/MySqlSchemaState.php index c3bb01ecb7fb..74342735e5f7 100644 --- a/src/Illuminate/Database/Schema/MySqlSchemaState.php +++ b/src/Illuminate/Database/Schema/MySqlSchemaState.php @@ -116,7 +116,7 @@ protected function executeDumpProcess(Process $process, $output, array $variable try { $process->mustRun($output, $variables); } catch (Exception $e) { - if (Str::contains($e->getMessage(), 'column_statistics')) { + if (Str::contains($e->getMessage(), ['column-statistics', 'column_statistics'])) { return $this->executeDumpProcess(Process::fromShellCommandLine( str_replace(' --column-statistics=0', '', $process->getCommandLine()) ), $output, $variables);