Table of Contents

, , ,

Difficulty
Very easy

MariaDB 10.3+

Goal

Install MariaDB in Centos 7

Steps

Create Repository

vim /etc/yum.repos.d/MariaDB.repo

Repo File

# MariaDB 10.3 CentOS repository list - created 2019-01-21 09:41 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install MariaDB

yum install -y mariadb mariadb-server

Enable & Start MariaDB

systemctl start mariadb
systemctl enable mariadb

Finalise Installation

mysql_secure_installation