Installing mariadb 10.2 (mysql 5.7) in centos

Installing mariadb 10.2 (mysql 5.7) in centos

Installing mariadb 10.2 mysql 5.7 in centos

1) create a file at /etc/yum.repos.d/mariadb.repo
2) paste in the info from https://downloads.mariadb.org/mariadb/repositories/


# MariaDB 10.2 CentOS repository list - created 2018-03-27 18:29 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

3) yum update
4) yum install Mariadb-server Mariadb-Client (if it doesnt automatically pick it up during the update)
5) service mariadb restart (or systemctl restart mariadb)