Percona Server post-installation script invokes mysql_install_db unconditonally which installs test database again (among other things, some which are not required for upgrade).
Also, the post-installation script is not in sync with upstream one as the reporter described.
The upstream one has:
# ----------------------------------------------------------------------
# Initiate databases if needed
# ----------------------------------------------------------------------
if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
# Fix bug#45415: no "mysql_install_db" on an upgrade
# Do this as a negative to err towards more "install" runs
# rather than to miss one. /usr/bin/mysql_install_db --rpm --user=mysql
fi
So, we will need to fix our post installation script and/or sync it with the upstream one.
Percona Server post-installation script invokes mysql_install_db unconditonally which installs test database again (among other things, some which are not required for upgrade).
Also, the post-installation script is not in sync with upstream one as the reporter described.
The upstream one has:
# ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
/usr/bin/ mysql_install_ db --rpm --user=mysql
# Initiate databases if needed
# -------
if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
# Fix bug#45415: no "mysql_install_db" on an upgrade
# Do this as a negative to err towards more "install" runs
# rather than to miss one.
fi
So, we will need to fix our post installation script and/or sync it with the upstream one.
The upstream fix was in http:// bugs.mysql. com/bug. php?id= 45415