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

MariaDB version mismatch #149

Open
NickDickinsonWilde opened this issue Dec 9, 2024 · 1 comment
Open

MariaDB version mismatch #149

NickDickinsonWilde opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NickDickinsonWilde
Copy link

Slightly complicated versioning issue here.
Problematic due to https://mariadb.org/mariadb-dump-file-compatibility-change/ but could be a problem under other circumstances I guess.
The version of the mariadb/mysql client in the appserver container is not the same as the version of the database server.
Example:

recipe: drupal11
config:
  php: 8.4
  database: mariadb:10.11

Will result currently in a database server with MariaDB 10.11.9, and an appserver client of 10.11.6 (due to https://packages.debian.org/bookworm/default-mysql-client -- https://packages.debian.org/bookworm/mariadb-client). Which is incompatible with exports made from 10.11.8+ (Could theoretically have this be a problem with a variety of version differences)

There are definitely multiple potential ways to solve this so wanted to discuss rather than going straight to a PR.

My first thought is:

@NickDickinsonWilde NickDickinsonWilde added the bug Something isn't working label Dec 9, 2024
@AaronFeledy
Copy link
Member

I'm actually currently working on resolving the compatibility issue in the underlying PHP service plugin by installing newer versions of the mariadb client on the images. That way any recipe that uses PHP will have a version that's compatible with the dump file change.

With that, I've also been thinking about how recipes might install the matching version of the client tools or if it's beneficial at all to do that. I can't say I've ever seen an issue where mismatched versions were a problem, except for this one compatibility issue that is resolved by bumping to recent patch releases rather than actually matching the versions.

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

2 participants