-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.x] Schema Dump (MariaDB) #32552
Comments
This should be fixed. |
Encountered this issue and just upgraded to 8.0, running latest MySQL 5.7
|
Same here ! mysqldump: unknown variable 'set-gtid-purged=OFF'
mysqldump: unknown variable 'set-gtid-purged=OFF'
Symfony\Component\Process\Exception\ProcessFailedException
The command "mysqldump --set-gtid-purged=OFF --skip-add-drop-table --skip-add-locks --skip-comments --skip-set-charset --tz-utc --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" "${:LARAVEL_LOAD_DATABASE}" --routines --result-file="${:LARAVEL_LOAD_PATH}" --no-data" failed.
Exit Code: 7(Unknown error)
Working directory: /app
Output:
================
Error Output:
================
mysqldump: unknown variable 'set-gtid-purged=OFF'
at vendor/symfony/process/Process.php:252
248▕ */
249▕ public function mustRun(callable $callback = null, array $env = []): self
250▕ {
251▕ if (0 !== $this->run($callback, $env)) {
➜ 252▕ throw new ProcessFailedException($this);
253▕ }
254▕
255▕ return $this;
256▕ }
+18 vendor frames
19 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Client config : root@592ea3c7e066:/app# mysqldump --version
mysqldump Ver 10.17 Distrib 10.3.23-MariaDB, for debian-linux-gnu (x86_64) |
@driesvints can this be reopened? |
I am getting the following. probably related,
|
Opne a PR to fix what you want. |
I have no idea if this works for MariaDB. I only use MySQL. |
@iKlsR are you using the latest Laravel version? |
@driesvints Yes, latest everything. Fresh project and had just upgraded to 8.4 (1c57ab5) as well, php is 7.4, mysql 5.7.31. Running this with docker. |
@iKlsR can you post the output of |
Pulled from https://hub.docker.com/r/bitnami/mysql/tags
Ah...
Could a fix be to check the dump command version as well? https://bugs.mysql.com/bug.php?id=72312 |
Ok so poking around a bit, this seems to stem from the mariadb distrib. If I comment out the flag in Reading the entire issue listing with this as well as external fixes on this I propose stripping the flags |
I don't have any issue at all with MariaDB 10.5.x and latest Laravel 8. |
Description:
A
schema:dump
command is added in Laravel 8.x (PR #32275).The
baseDumpCommand
uses--set-gtid-purged=OFF
in theMySqlSchemaState
class.https://github.com/laravel/framework/blob/c389f0a4a0dfb411bf7f50edcf543a896299f73b/src/Illuminate/Database/Schema/MySqlSchemaState.php#L78-#L81
MariaDB does not have the
--set-gtid-purged
option which results in aProcessFailedException
.Error Output:
mysqldump: unknown variable 'set-gtid-purged=OFF'
The text was updated successfully, but these errors were encountered: