MariaDB – Installation on Ubuntu Precise

Next: Run phpMyAdmin on Nginx in Ubuntu Precise

It’s time to give up MySQL and move on to MariaDB. Here is the steps for MariaDB installation on Ubuntu Precise (Ubuntu 12.04.1 LTS) with root privilege.

1. Create the following file.

deb precise main
deb-src precise main


2. Import the key for this repository

  • apt-key adv –recv-keys –keyserver 0xcbcb082a1bb943db


3. Run apt-get update.

  • apt-get update


4. Install now! And enter the root password twice during the installation.

  • apt-get install mariadb-server


5. Secure MariaDB by the mysql_secure_installation command and configure as follow.

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


Done =)



2 thoughts on “MariaDB – Installation on Ubuntu Precise”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.