Uninstall MySQL from Ubuntu and Install MariaDB

Uninstall MySQL from Ubuntu and Install MariaDB

You may have heard about the upstart MySQL database MariaDB, a branch of MySQL created in the wake of Oracle’s purchase of Sun Microsystems. You’ll find many great reasons to consider MariaDB, not least that MariaDB is led by the original author of MySQL, Monty Widenius. But there are reasons to stick with MySQL too for sometimes.

Step 1: Check that mysql is installed

On Ubuntu 16.04/15.10/15.04:

sudo systemctl status mysql

On Ubuntu 14.10 and previous versions:

sudo service mysql status
Check MySQL is installed
Check MySQL is installed

Step 2: Uninstall MySQL

if you want to install MariaDB on your system first you have to uninstall existing mysql. Follow these steps to uninstall completely existing MySQL from server.

sudo systemctl stop mysql
sudo apt-get remove --purge mysql-server mysql-client mysql-common
Check MySQL is installed
Uninstall MySQL
sudo apt-get autoremove
Uninstall MySQL
Uninstall MySQL
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql/
sudo rm -rf /etc/mysql/
Uninstall MySQL
Uninstall MySQL

Step 3: Install MariaDB

When MySQL in uninstalled completely then run the following command to install MariaDB.

sudo apt-get install mariadb-server
http://www.buyprotheme.com/wp-content/uploads/2017/09/Uninstall-MySQL-from-Ubuntu-and-Install-MariaDB-05.png
Install MariaDB

Step 4 (Final): Checking MariaDB is installed

sudo systemctl status mysql
Check MariaDB is Installed and running
Check MariaDB is Installed and running
Check MariaDB is Installed and running
Check MariaDB is Installed and running

comments 04

  1. Brodie at 1:51 pm

    I am really impressed with your coding skills……..

    reply

add a comment

Leave a Reply

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

*