Below we will provide instructions on replacing MySQL server with
MariaDB server. For Percona Server, the steps are the same, the only
differences are in configuring repositories and package names.
To replace your MySQL server with MariaDB:
-
Back up databases located on your MySQL server. Use one of the
following commands:-
To back up all databases:
# mysqldump -uadmin -p`< /etc/psa/.psa.shadow ` --all-databases | gzip > /root/mysql.all.dump.sql.gz
-
To back up only data required by Plesk:
# mysqldump -uadmin -p`< /etc/psa/.psa.shadow ` --databases mysql psa apsc | gzip > /root/mysql.mysql-psa-apsc.dump.sql.gz
-
-
Configure the MariaDB repository on your server. To generate the
repository configuration for your operating system, use the wizard
available at https://downloads.mariadb.org/mariadb/repositories/.
When selecting the MariaDB version, choose the version not less than
your current MySQL version. The versions of MariaDB currently
supported by Plesk are 5.5, 10.0, and 10.1.Note: Once you install MariaDB, do not disable this repository on your
server. Plesk requires it for updates. -
Stop the Watchdog Plesk extension if it is installed on your server
and stop other monitoring services that can start themysql
service once you stop it manually. -
Install MariaDB using one of the instructions provided below.
-
Switch on Watchdog and start other services you stopped in step 3.
-
Notify Plesk about the changes in the MySQL component:
plesk sbin packagemng --set-dirty-flag
-
(Optional) If you experience MySQL errors after updating, restore
the backup you created in step 1:zcat /root/mysql.all.dump.sql.gz | mysql -uadmin -p`< /etc/psa/.psa.shadow `
To install MariaDB on CentOS or RedHat:
-
Stop the
mysql
service:service mysqld stop
-
Remove the MySQL server from your server:
<div…