From c24e6edde84a6110320d16eb16063588c0fca75c Mon Sep 17 00:00:00 2001 From: Jeff Turner Date: Thu, 9 Jul 2026 15:36:32 +1000 Subject: [PATCH] fix(mariadb plugin): Fix warning by using 'mariadb-install-db' instead of 'mysql_install_db'. #2910 Change setup_db.sh (run via init hook) to user the proper MariaDB executable name 'mariadb-install-db', rather than its compatibility symlink 'mysql_install_db'. This prevents users seeing the note: .../.devbox/nix/profile/default/bin/mysql_install_db: Deprecated program name. It will be removed in a future release, use 'mariadb-install-db' instead Fixes #2910 --- plugins/mariadb/process-compose.yaml | 2 +- plugins/mariadb/setup_db.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mariadb/process-compose.yaml b/plugins/mariadb/process-compose.yaml index 674ee04a28b..a496d848867 100644 --- a/plugins/mariadb/process-compose.yaml +++ b/plugins/mariadb/process-compose.yaml @@ -2,7 +2,7 @@ version: "0.5" processes: mariadb: - command: "echo 'Starting mysqld... check mariadb_logs for details'; mariadbd --log-error=$MYSQL_HOME/mysql.log" + command: "echo 'Starting mariadbd... check mariadb_logs for details'; mariadbd --log-error=$MYSQL_HOME/mysql.log" is_daemon: false shutdown: command: "mariadb-admin -u root shutdown" diff --git a/plugins/mariadb/setup_db.sh b/plugins/mariadb/setup_db.sh index 3116d2744cb..b2a8b6fa595 100644 --- a/plugins/mariadb/setup_db.sh +++ b/plugins/mariadb/setup_db.sh @@ -2,11 +2,11 @@ if [ ! -d "$MYSQL_DATADIR" ]; then # Install the Database - mysql_install_db --auth-root-authentication-method=normal \ + mariadb-install-db --auth-root-authentication-method=normal \ --datadir=$MYSQL_DATADIR --basedir=$MYSQL_BASEDIR \ --pid-file=$MYSQL_PID_FILE fi if [ -e "$MYSQL_CONF" ]; then ln -fs "$MYSQL_CONF" "$MYSQL_HOME/my.cnf" -fi \ No newline at end of file +fi