title: mysqldump: unknown variable 'set-gtid-purged=OFF' in laravel when running command php artisan schema:dump
body: <p>I m using Laravel : 8.^0. After a few migrations i m trying to run <code>php artisan schema:dump</code> to generate an sql file. But i m getting the below error</p>
  <pre><code>mysqldump: unknown variable 'column-statistics=0'
  mysqldump: unknown variable 'set-gtid-purged=OFF'
  
     Symfony\Component\Process\Exception\ProcessFailedException 
  
    The command &quot;mysqldump  --user=&quot;${:LARAVEL_LOAD_USER}&quot; --password=&quot;${:LARAVEL_LOAD_PASSWORD}&quot; --host=&quot;${:LARAVEL_LOAD_HOST}&quot; --port=&quot;${:LARAVEL_LOAD_PORT}&quot; --skip-add-locks --skip-comments --skip-set-charset --tz-utc --set-gtid-purged=OFF &quot;${:LARAVEL_LOAD_DATABASE}&quot; --routines --result-file=&quot;${:LARAVEL_LOAD_PATH}&quot; --no-data&quot; failed.
  
  Exit Code: 7(Unknown error)
  
  Working directory: D:\laravel
  
  Output:
  ================
  
  
  Error Output:
  ================
  mysqldump: unknown variable 'set-gtid-purged=OFF'
  
    at D:\laravel\vendor\symfony\process\Process.php:257
      253▕      */
      254▕     public function mustRun(callable $callback = null, array $env = []): self   
      255▕     {
      256▕         if (0 !== $this-&gt;run($callback, $env)) {
    ➜ 257▕             throw new ProcessFailedException($this);
      258▕         }
      259▕
      260▕         return $this;
      261▕     }
  
    1   D:\laravel\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlSchemaState.php:142e\Schema\MySqlSchemaState.php:142
        Symfony\Component\Process\Process::mustRun(Object(Closure))
                                                                                           e\Schema\MySqlSchemaState.php:145
    2   D:\laravel\vendor\laravel\framework\src\Illuminate\Databasonent\Process\Process), Object(Closure))e\Schema\MySqlSchemaState.php:145
        Illuminate\Database\Schema\MySqlSchemaState::executeDumpProcess(Object(Symfony\Component\Process\Process), Object(Closure))
  </code></pre>
  <p>I m using a docker mysql container with below mysql version</p>
  <p>mysql  Ver 8.0.22 for Linux on x86_64 (MySQL Community Server - GPL)</p>