Maria DB installation in ubuntu

Posted February 6, 2018 22.6k views
MariaDBUbuntu 16.04

What is the procedure to install mariaDB in ubuntu 16.04?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

MariaDB can be installed with the following commands on Ubuntu 16.04

apt-get update;
apt-get install mariadb-server;

Follow the Process. Type:

sudo apt-get install mariadb-server mariadb-client

Do not miss to Secure your DB:

sudo mysql_secure_installation

Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Enter password
Re-enter new password: Repeat password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y

Finally Restart you DB:

sudo systemctl restart mysql.service