Hey Ravi, execute the following instructions to install MariaDB on Ubuntu:
Add repositories
apt-get install software-properties-common
apt-key adv --recv-keys -keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
add-apt-repository 'deb http://mirror.jmu.edu/pub/mariadb/repo/10.1/ubuntu trusty main'
Update repositories and then install:
apt-get update
apt-get install mariadb-server
Finish the installation by running
/usr/bin/mysql_secure_installation