{"id":5851,"date":"2013-02-22T09:33:40","date_gmt":"2013-02-22T15:33:40","guid":{"rendered":"http:\/\/blog.cpanel.net\/?p=5851"},"modified":"2013-02-22T09:33:40","modified_gmt":"2013-02-22T15:33:40","slug":"mysql-mariadb","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/tips-and-tricks\/mysql-mariadb\/","title":{"rendered":"How to replace MySQL with MariaDB in 11.36+"},"content":{"rendered":"
Below you will find some steps on how to affectively stop cPanel\/WHM from maintaining MySQL and begin utilizing MariaDB for any and all database activity on your server. MariaDB is “An enhanced, drop-in replacement for MySQL” (Source: https:\/\/mariadb.com\/<\/a>). The guide found below is based around utilizing the new RPM tools we provide in 11.36. Important Links<\/strong> MariaDB Versus MySQL Compatibility<\/a> MariaDB Versus MySQL Features<\/a> Documentation on the RPM system provided by cPanel & WHM<\/em><\/a> Step 1: Backup existing MySQL\u00a0data<\/strong> Make sure to save all existing data just in case there are any issues.<\/p>\n Step 2: Disable the targets so cPanel no longer handles MySQL\u00a0updates<\/strong> The following will mark the versions of MySQL\u00a0we distribute as uninstalled so they are no longer maintained by cPanel\/WHM<\/p>\n Step 3: Remove existing MySQL\u00a0RPM’s so theres a clean slate for\u00a0MariaDB<\/strong><\/p>\ncp -Rf \/var\/lib\/mysql \/var\/lib\/mysql-old\nmv \/etc\/my.cnf \/etc\/my.cnf-old<\/pre>\n
\/usr\/local\/cpanel\/scripts\/update_local_rpm_versions --edit target_settings.MySQL50 uninstalled\n\/usr\/local\/cpanel\/scripts\/update_local_rpm_versions --edit target_settings.MySQL51 uninstalled<\/pre>\n