Home Linux Ubuntu How To Install MariaDB on Ubuntu 16.04/18.04

How To Install MariaDB on Ubuntu 16.04/18.04

How to install MariaDB on Ubuntu 16.04/18.04 operating system? How can I?

Introduction

MariaDB is an open-source database. It is fastest-growing relational database management system (RDBMS). It is also developed by the original developer team of MySQL database.

MariaDB is becoming the most popular database. It is an enhanced, drop-in replacement for the MySQL server. In this article, will help you to install and secure the mariadb server.

Step 1: Install MariaDB 10 on Ubuntu

The first step is to install the MariaDB server package from the official Ubuntu repository. Run the below command.

sudo apt-get update 
sudo apt-get install mariadb-server mariadb-client 

MariaDB is successfully installed and it will automatically start the service. To check the MariaDB service status, run the following command.

systemctl status mysql 
mariadb installed on ubuntu
mariadb installed on Ubuntu

Run the below command to check the installed MariaDB version.

mysql --version
Check mariadb version
Check mariadb version

Step 2: Secure MariaDB Server

After installation, run the following command to secure the MariaDB server.

mysql_secure_installation
secure mariadb on ubuntu
secure mariadb on ubuntu

Step 3: Connect MariaDB Server Using Command Line

Once the above method of securing MariaDB is done, you can connect to the MariaDB server. To login to MariaDB server, run the following command.

mysql -u root -p
connect to mariadb server
connect to mariadb server

Read More: How to Install MySQL 8.0 in Ubuntu


Conclusion: You have learned how to install, configure and secure MariaDB Server. In case of any confusion, kindly feel free to write in below comment box.

LEAVE A REPLY

Please enter your comment!
Please enter your name here