"Unslotting" a slotted MySQL Installation
Upgrading to an unslotted MySQL version from a slotted one
Due to the negative response from our user base, the MySQL team has decided to
go back to unslotted MySQL. In other words, installing different versions of
MySQL on the same system is not supported anymore.
If you had upgraded to the slotted version, this guide should help you upgrade
to the unslotted version.
The following script should do most of the work:
Code Listing 1.1: "Unslotting" script
echo " building an unslotted copy of mysql "
emerge --buildpkgonly '=dev-db/mysql-5.0.18-r60'
echo " stopping the server "
echo " removing most of symlinks "
eselect mysql remove
echo " config files "
mv /etc/mysql /etc/mysql.old
mv /etc/mysql-500 /etc/mysql
echo " removal of remaining symlinks, and eselect stuff "
rm /usr/lib/mysql /usr/include/mysql /usr/bin/mysql_config /usr/lib/libmysql*
rm -rf /var/lib/eselect/mysql/ /usr/lib/mysql-0
echo " unmerge slotted mysql "
emerge -C \
echo " ready to merge again MySQL "
emerge --usepkgonly '=dev-db/mysql-5.0.18-r60'
It is also recommended that you move data directories listed in
/etc/mysql/my.cnf. If you do that, don't forget to edit
/etc/mysql/my.cnf as well.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-2.5 license. The Gentoo Name and Logo Usage Guidelines apply.