# cat > /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos5-x86
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
# yum remove mysql mysql-manual
# yum install MariaDB-server MariaDB-client
# mv /etc/my.cnf /etc/my.cnf_ori
# mv /etc/my.cnf.rpmsave /etc/my.cnf
# /etc/init.d/mysqld start
# netstat -anlp |grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1906/mysqld
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.40-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>