MariaDB – How to install in Ubuntu 12.04 LTS

MariaDB is a database server that offers drop-in replacement functionality for MySQL. MariaDB is built by some of the original authors of MySQL, with assistance from the broader community of Free and open source software developers. In addition to the core functionality of MySQL, MariaDB offers a rich set of feature enhancements including alternate storage engines, server optimizations, and patches.

 

 

 

 

Installing MariaDB in Ubuntu 12.04

1 – Add the repository


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 – Add key to repository

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 1BB943DB

3 – Update cache

sudo apt-get update

4 – Install MariaDB and dependencies

sudo apt-get install libmariadbclient-dev libmariadbclient18 libmariadbd-dev libmysqlclient18 mariadb-client mariadb-client-5.5 mariadb-client-core-5.5 mariadb-common mariadb-server mariadb-server-5.5 mariadb-server-core-5.5 mariadb-test mariadb-test-5.5 mysql-common

5 – If needed, start the database

sudo /etc/init.d/mysql start

 

MariaDB shares the same commands as MySQL, you can access it using:

 

mysql -u root -p;
That's it.

 

, , , , ,

Trackbacks/Pingbacks

  1. How to install MariaDB 5.5 on Ubuntu 13.04 - 23/05/2013

    [...] year we installed MariaDB 5.5 on Ubuntu 12.04. Today, we are going to install MariaDB on Ubuntu [...]

Leave a Reply


+ two = 3

%d bloggers like this: