MariaDB 10.3 on Centos 7

Add MariaDB Repositories

To install MariaDB mainline repository in CentOS 7, run commands below to create a MariaDB repository on your system

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

To install MariaDB CentOS 7 after adding the new repository, run the commands below.

yum update
yum install MariaDB-server MariaDB-client

Starting Database

systemctl start mysql.service
systemctl enable mariadb.service

Securing

By default, MariaDB wont have root password and its security issue. So, run the below command to secure MariaDB installation, this will set root password for MariaDB also set other permission and remove test databases tool

mysql_secure_installation

 

You may also like...