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.
/etc/apt/sources.list.d/MariaDB.list

# http://downloads.mariadb.org/mariadb/repositories/
deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main

 

2. Import the key for this repository

  • apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 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 =)

Reference:

About these ads

2 thoughts on “MariaDB – Installation on Ubuntu Precise”

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s