Skip to content

Instantly share code, notes, and snippets.

@huzaifa-a
Last active July 27, 2020 23:05
Show Gist options
  • Save huzaifa-a/ed677cd24097d89378b53b914b037b69 to your computer and use it in GitHub Desktop.
Save huzaifa-a/ed677cd24097d89378b53b914b037b69 to your computer and use it in GitHub Desktop.
Install mariadb-server-10.4 in ubuntu

Step 1: Check that mysql is installed

On Ubuntu 16.04/15.10/15.04:

sudo systemctl status mysql
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
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /etc/mysql/
Step 3: Install MariaDB

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

Install MariaDB

Add mariaDB repo

sudo apt-get install aptitude
sudo aptitude install mariadb-server-10.4
Step 4 (Final): Checking MariaDB is installed
sudo systemctl status mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment