Details
Description
Originally reported as
https://issues.redhat.com/browse/RHEL-25575
Even when a user sets --baseurl=/usr which is valid prefix, the mysql_install_db script fails.
After a bit of debugging, I found a code branch that tries to look for a plugin that might not exist in paths that do not list all possible options:
A suggested fix:
diff -up mariadb-10.11.6/scripts/mysql_install_db.sh.plugindir mariadb-10.11.6/scripts/mysql_install_db.sh
|
--- mariadb-10.11.6/scripts/mysql_install_db.sh.plugindir 2024-02-19 17:37:53.677617656 +0100
|
+++ mariadb-10.11.6/scripts/mysql_install_db.sh 2024-02-19 17:41:27.907002490 +0100
|
@@ -370,7 +370,7 @@ then
|
cannot_find_file fill_help_tables.sql @pkgdata_locations@
|
exit 1
|
fi
|
- plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
|
+ plugindir=`find_in_dirs --dir type_mysql_json.so $basedir/lib*/plugin $basedir/lib*/mariadb/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
|
pamtooldir=$plugindir
|
# relative from where the script was run for a relocatable install
|
elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mariadbd"
|
Attachments
Issue Links
- is duplicated by
-
MDEV-33550 MariaDB server fails to start when basedir set to anything
- Closed