replace MySQL with MariaDB on cPanel

cp -Rf /var/lib/mysql /var/lib/mysql-old
mv /etc/my.cnf /etc/my.cnf-old

/scripts/update_local_rpm_versions –edit target_settings.MySQL50 uninstalled
/scripts/update_local_rpm_versions –edit target_settings.MySQL51 uninstalled
/scripts/update_local_rpm_versions –edit target_settings.MySQL55 uninstalled

/scripts/check_cpanel_rpms –fix –targets=MySQL50,MySQL51,MySQL55

vi /etc/yum.repos.d/mdb.repo
# MariaDB 10.0 CentOS repository list – created 2015-01-16 13:06 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

yum install MariaDB-Galera-server MariaDB-client galera

/etc/init.d/mysql start
mysql_upgrade
/etc/init.d/mysql restart

/scripts/easyapache –build

Leave a Reply

Your email address will not be published. Required fields are marked *