{{tag>mariadb mysql centos guide }} {{howhard>1}}
====== MariaDB 10.3+ ======

===== Goal =====
Install MariaDB in Centos 7

==== Steps ====
=== Create Repository ===
<sxh bash>vim /etc/yum.repos.d/MariaDB.repo</sxh>

Repo File
<sxh bash>
# 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</sxh>

=== Install MariaDB ===
<sxh bash>yum install -y mariadb mariadb-server</sxh>

=== Enable & Start MariaDB ===
<sxh bash>systemctl start mariadb
systemctl enable mariadb</sxh>

=== Finalise Installation ===
<sxh bash>mysql_secure_installation</sxh>