Skip to content

Detect MariaDB vs MySQL #6072

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

Merged
merged 9 commits into from
Mar 28, 2025
Merged

Detect MariaDB vs MySQL #6072

merged 9 commits into from
Mar 28, 2025

Conversation

swissspidy
Copy link
Member

See:

MariaDB currently adds symlinks for mysql to use mariadb under the hood, but that is being deprecated and people get warnings like Deprecated program name. It will be removed in a future release, use 'mariadb' instead

With this change, the idea is to offer better utils for commands like db-command to pick the right binary.

I suppose that could imply that we officially support MariaDB, but I guess since WordPress core itself recommends it, we should at least test it.

@swissspidy swissspidy requested a review from a team as a code owner March 26, 2025 15:57
@swissspidy
Copy link
Member Author

@mrsdizzie @schlessera curious to hear your thoughts

Copy link

codecov bot commented Mar 26, 2025

Codecov Report

Attention: Patch coverage is 0% with 42 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
php/utils.php 0.00% 42 Missing ⚠️

📢 Thoughts on this report? Let us know!

@mrsdizzie
Copy link
Member

Maybe it could be good to have one of the test runs use Mariadb instead of MySQL as well?

@swissspidy
Copy link
Member Author

Yes, see wp-cli/.github#123

Feel free to submit a PR :)

@swissspidy swissspidy merged commit aeae871 into main Mar 28, 2025
26 of 51 checks passed
@swissspidy swissspidy deleted the try/mariadb-detection branch March 28, 2025 12:17
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.

2 participants