MariaDB is an open source database management system (DBMS) which is widely used as a replacement for MySQL. MariaDB has enhanced performance over MySQL. MariaDB is also has the backward compatibility with MySQL making it easy for you to utilize the nodes. All filenames, paths, ports, connectors etc… work unchanged with MariaDB.

In this tutorial you will learn how to Install MariaDB on Ubuntu.

Installing MariaDB from the repository

This is the easiest way to install MariaDB in your box.

  • Update your packages using the following command.
sudo apt update
  • Install MariaDB using the following command.
sudo apt install mariadb-server
  • After the installation MariaDB server will start automatically. You can verify it by running the following command.
sudo systemctrl status mariadb
Checking the status of MariaDB database
  • In case if the MariaDB server doesn’t start automatically you can run the following command to start the service.
service mariadb start
Starting MariaDB service manually

Also Read: How to Use Wildcards in Linux Explained

Getting Started with MariaDB

After the installation, make sure to check the status of MariaDB server. In case if it is not active and running use the above command to start the service.

After that you can simply type MariaDB on your terminal and press enter to get started.

Connecting to MariaDB

Type help to list all MySQL commands.

Getting Help in Maria DB

That’s how you can Install MariaDB on Ubuntu. Hope you enjoyed the article. See you from another one.


Leave a Reply

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