• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

A cPanel Tech

The Diaries of a Linux Server Administrator

  • Home
  • About
  • Privacy
You are here: Home / Articles / How to Uninstall MariaDB in a cPanel server

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 116

How to Uninstall MariaDB in a cPanel server

November 26, 2015 By admin 2 Comments

Uninstalling MariaDB is as easy as installing MariaDB. If you ever want to uninstall and roll back to stock MySQL, continue reading for a step-by-step guide to uninstall MariaDB.

Here are the steps to Uninstall MariaDB and return to stock MySQL.

 

Find and Uninstall MariaDB

cp -Rf /var/lib/mysql /var/lib/mysql-old
mv /etc/my.cnf /etc/my.cnf-old
rpm -qa |grep -i mariadb

The above command will list the MariaDB installations and you can use either rpm -e command or yum to uninstall those RPMs

Enable cPanel native MySQL support

/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.MySQL50 uninstalled

/usr/local/cpanel/scripts/update_local_rpm_versions –edit target_settings.MySQL51 uninstalled /usr/local/cpanel/scripts/update_local_rpm_versions –edit target_settings.MySQL55 installed

Install MySQL 5.5

/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=MySQL50,MySQL51,MySQL55

This should install MySQL 5.5 on your server. You may want to run a check and repair database if any is reporting an issue in your log file.

After that, you will need to rebuild PHP so that it will use the new libmysqlclient.

 

Filed Under: Articles, cPanel, MySQL, Tutorials Tagged With: cpanel, mariadb

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Copyright 2018 CPanelTech