Skip to content
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

[11.x]Replacing outdated mysqldump with mariadb-dump #51355

Closed
wants to merge 2 commits into from
Closed

[11.x]Replacing outdated mysqldump with mariadb-dump #51355

wants to merge 2 commits into from

Conversation

Poseidon281
Copy link

mysqldump causes a warning and will be removed in future releases so I simply replaced it with mariadb-dump

@Poseidon281 Poseidon281 changed the title Replacing outdated mysqldump with mariadb-dump [11.x]Replacing outdated mysqldump with mariadb-dump May 9, 2024
Fixing mistake that crynobone pointed me to
@staudenmeir
Copy link
Contributor

staudenmeir commented May 9, 2024

I looked into this when I added the MariaDB driver but decided against it because mariadb-dump doesn't work with Sail. I don't think it's possible to install both mysqldump and mariadb-dump in the Sail container, but we could probably create a symlink mariadb-dump -> mysqldump.

@taylorotwell
Copy link
Member

See above.

@driesvints
Copy link
Member

@staudenmeir good call on the symlink but I do feel that could lead to confusion as people would expect the actual mariadb-dump binary but are in reality using mysqldump.

@staudenmeir
Copy link
Contributor

staudenmeir commented May 10, 2024

@driesvints It's not ideal but the easiest workaround I can think of. The current situation isn't ideal for MariaDB users either: If you dump your schema with Sail (i.e. using MySQL's mysqldump), you could lose MariaDB-specific features. If there aren't any critical differences between mariadb-dump and mysqldump now, there will be in the future.

This PR needs to be applied at some point as MariaDB will remove its support for mysqldump.

AFAICS, the cleanest solution would be to add an option to customize the path to the dump binary. With this, Sail could use the binaries from the actual mysql/mariadb containers.

@driesvints
Copy link
Member

Can we even merge this in on a patch release? Won't existing apps using MariaDB be broken if it's suddenly the mariadb-dump that's being used instead of mysqldump?

@staudenmeir
Copy link
Contributor

Yeah, we should target Laravel 12. I don't think we can rule out issues like this completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants