1. Add MariaDB YUM repository
# vim /etc/yum.repos.d/MariaDB.repo
# MariaDB 5.5 CentOS repository list
# http://mariadb.org/mariadb/repositories/
[mariadb]name=MariaDB
baseurl=http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
2. Then, run the following commands.
# yum -y update
# service mysql stop
# yum -y remove mysql-server mysql
3. Install MariaDB 5.5.
# yum install MariaDB-server MariaDB-client
# service mysql start
4. Check if MariaDB service is running.
# netstat -ntlp | grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:*LISTEN 5476/mysqld