Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-33492

mysql_install_db fails when baseurl is set

    XMLWordPrintable

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:

      https://github.com/MariaDB/server/blob/eeba940311ed17d160023280783fd2bbb64abef3/scripts/mysql_install_db.sh#L379

      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

          Activity

            People

              danblack Daniel Black
              hhorak Honza Horak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.