Question

Maria DB installation in ubuntu

What is the procedure to install mariaDB in ubuntu 16.04?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

MariaDB can be installed with the following commands on Ubuntu 16.04

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