Skip to content

contrib: use mariadb client in data load helper - #2971

Draft
ideaship wants to merge 1 commit into
mainfrom
contrib-mariadb-client
Draft

ideaship wants to merge 1 commit into
mainfrom
contrib-mariadb-client

Conversation

@ideaship

@ideaship ideaship commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

contrib/mysql_random_data_load.sh looked for /usr/bin/mysql and, if missing, installed mariadb-client-core-10.1. No supported Ubuntu ships that package; on 24.04 it has no install candidate, so on a host without a client the script fails before loading any data.

This calls the client by its mariadb name and installs mariadb-client, the package scripts/check/200-infrastructure.sh already uses. The mariadb name works with the 10.11 client from Ubuntu and with 11.x clients, which no longer ship the mysql names (the 2026.1 mariadb-server image has none).

Checked on ubuntu:24.04: mariadb-client 1:10.11.14 installs and provides /usr/bin/mariadb.

🤖 Generated with Claude Code

mysql_random_data_load.sh looked for /usr/bin/mysql and, if missing,
installed mariadb-client-core-10.1. No supported Ubuntu ships that
package; on 24.04 it has no install candidate, so on a host without a
client the script fails before loading any data.

Call the client by its mariadb name and install mariadb-client, the
package scripts/check/200-infrastructure.sh already uses. The mariadb
name works with the 10.11 client from Ubuntu and with 11.x clients,
which no longer ship the mysql names (the 2026.1 mariadb-server image
has none). Checked on ubuntu:24.04: mariadb-client 1:10.11.14 installs
and provides /usr/bin/mariadb.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship ideaship self-assigned this Oct 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants