Revert upstream changes to make the mysql_install_dbrelocatable Resolves: #1731062 Upstream intended to make the mysql_install_db script to be relocatable, which is not a supported use case in RHEL. Because of different layout (mysqld in /usr/libexec while all other binaries in /usr/bin) these changes broke mysql_install_db if run without arguments (we use --rpm in the systemd so we didn't meet this issue there). Reverting changes upstream did fixes the standalone run of mysql_install_db again. Original upstream issue: https://jira.mariadb.org/browse/MDEV-14580 Related fixes that broke the RHEL build: https://github.com/MariaDB/server/commit/9c5be7d131f7eb7f27df722463faa2cd8135fd1b https://github.com/MariaDB/server/commit/50e593386fcbaa1ca7bd2ed9fdfc51fd5102cdab diff -up mariadb-5.5.65/scripts/mysql_install_db.sh.norellocatable mariadb-5.5.65/scripts/mysql_install_db.sh --- mariadb-5.5.65/scripts/mysql_install_db.sh.norellocatable 2019-08-17 07:06:14.135318451 +0200 +++ mariadb-5.5.65/scripts/mysql_install_db.sh 2019-08-17 07:10:58.702473136 +0200 @@ -36,9 +36,6 @@ in_rpm=0 ip_only=0 cross_bootstrap=0 -dirname0=`dirname $0 2>/dev/null` -dirname0=`dirname $dirname0 2>/dev/null` - usage() { cat <