Skip to content

Add mariadb-connector-c to cli images#902

Closed
ChrisWiegman wants to merge 3 commits intodocker-library:masterfrom
ChrisWiegman:master
Closed

Add mariadb-connector-c to cli images#902
ChrisWiegman wants to merge 3 commits intodocker-library:masterfrom
ChrisWiegman:master

Conversation

@ChrisWiegman
Copy link
Copy Markdown

@ChrisWiegman ChrisWiegman commented Jun 3, 2024

As per the issue @febsn brought up in #862, wp-cli will fail when using MySQL 8 without the mariadb-connector-c extension. The error message presented is the following:


mysqldump: Got error: 1045: "Plugin caching_sha2_password could not be loaded: Error loading shared library /usr/lib/mariadb/plugin/caching_sha2_password.so: No such file or directory" when trying to connect

This introduces the missing package and tests successfully with both MySQL and MariaDB.

@tianon
Copy link
Copy Markdown
Member

tianon commented Jun 4, 2024

Hmm, do we have some documentation somewhere that points to this as the "correct" fix? It seems like kind of a random package name that isn't even very well connected to the problem it solves. 😞

Also, I think if we're going to explicitly install this mariadb package, we should probably switch from the mysql-client metapackage to a mariadb explicit one.

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