CentOS 7 come with MariaDB by default. Since many large sites like Google, Wikipedia migrating away from Oracle MySQL to MriaDB, lets use it on our new CentOS server installation.
Create the file /etc/yum.repos.d/MariaDB.repo
vi /etc/yum.repos.d/MariaDB.repo
Add
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
Now, run
yum update
Search for available MariaDB versions
yum search MariaDB
To Install, run
yum install MariaDB-server MariaDB-client
To Start/Stop
service mysql start service mysql stop