[1.x] Install "mariadb-client" package for MariaDB users #693
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is related to laravel/framework#51355:
We need to switch the MariaDB's driver dump binary from
mysqldump
tomariadb-dump
at some point as MariaDB will remove its support formysqldump
. The issue is that Sail doesn't supportmariadb-dump
yet.I looked into using the dump binaries from the actual
mysql
/mariadb
containers, but that's a nightmare.Instead, my suggestion is to install the
mariadb-client
package instead ofmysql-client
in the app container when the MariaDB service is requested. This package provides the necessarymariadb-dump
binary.As discussed with @driesvints in the other PR, we should only switch to
mariadb-dump
in Laravel 12 and this PR prepares Sail for that switch. I only adjusted theDockerfile
for PHP 8.3 as I assumed that Laravel 12 will drop support for PHP 8.2.I don't see any breaking changes for Sail users:
MYSQL_CLIENT="mysql-client"
, nothing changes for existing users after updating to the latest version.mariadb-client
package creates a symlinkmysqldump -> mariadb-dump
.@driesvints What do you think about this approach?