-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
artisan schema:dump error #34592
Comments
I have the same error, in Alpine linux. It comes from mariadb client, because it is default on alpine.
In my opinion it is no problem to remove this option. In documentation of original mysqlclient it is:
|
I think this might have been fixed in the very latest release. Can you upgrade? |
If you have a fix please submit a PR. I do not plan to spend anymore personal time on various mysql client issues with schema:dump. |
It is not laravel bug. In my case - client is maria db, but DB is MySQL. When you install mysql client on Alpine linux, it uses mariadb client instead. So code: \Illuminate\Database\Schema\MySqlSchemaState::baseDumpCommand not works |
@yarbala Yea, I understand it. And I don't say what is a bug. But the given command don't give me a choice to choose any options. Moreover the GTID option is for servers that use GTID-based replication, it's not enabled by default in mysql 5.6, 5.7, 8.0, so I don't understand why this |
* It mysqldump errors because "set-gtid-purged" isn't a valid option retry without it. * Update MySqlSchemaState.php Co-authored-by: Matt Davis <Hamroll3> Co-authored-by: Taylor Otwell <[email protected]>
mysqldump Ver 10.16 Distrib 10.1.45-MariaDB, for debian-linux-gnu (x86_64)
mysql 8.0.20
Description:
When i run
php artisan schema:dump
it returns followed error:Steps To Reproduce:
I am using
php:7.3-apache-stretch
docker image and install defaultmysql-client
with apt.The text was updated successfully, but these errors were encountered: