To install the MariyaDB on your server which has CentOS you must have a repository for MariyaDB. Do follow the steps below to create a repo for MariyaDB.
CentOS
Step 1 : Login to server via SSH as root.
Step 2 : Create Yum repository for MariaDB
Create a file “MariaDB.repo”.
# vi /etc/yum.repos.d/MariaDB.repo
Place the following in the newly created repo file.
DISTRO ( https://downloads.mariadb.org/mariadb/repositories/ ):
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5.34/centos6-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Redhat
Step 2 : Create Yum repository for MariaDB
Create a file “MariaDB.repo”.
# vi /etc/yum.repos.d/MariaDB.repo
Place the following in the newly created repo file.
# MariaDB 5.5 RedHat repository list - created 2014-02-11 02:55 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/rhel6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
You will get more details from the Mariya’s official website.
Related:
How to replace MySQL with MariaDB on a cPanel server
How to replace MySQL with PerconaDB on a cPanel server
Nice blog. I understood the mariaDB Deeply because of this blog. You explain MariaDB very well and it is so helpful for me.thanks for sharing with us.