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

Outdated Mariadb client is incompatible with database dumps from newer mariadb versions #120

Open
AaronFeledy opened this issue Aug 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AaronFeledy
Copy link
Member

Related to lando/mariadb#55

Database dumps produced by recent versions of mariadb contain a new enable the sandbox mode command that cannot be processed by older versions of the mariadb client. This is fine for lando db-import because that script is run using the database container which will have the most recent patch version of mariadb client. However, when running scripts or commands such as drush in the PHP container, the version that ships with the PHP container is used. Currently, that's 10.5.23, which is the latest stable version from the debian 11 package repo. We need 10.5.25 to get support for new database dumps.

Bumping to debian 12 in #119 will take us up to 10.11.6, but support for the new command was added in 10.11.8.

So, if we want to allow drush or other scripts in the PHP container to work with data from up-to-date mariadb servers, we need to depart from the debian stable repo for installing mariadb client. I think it's fair for users to expect this to work and I think Lando should handle it.

I think we should install mariadb client package 10.11.8 (or latest patch version that matches each PHP image) directly from the mariadb repo during the image build.

@AaronFeledy AaronFeledy added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant