How to install MariaDB on CentOS

Goto and select version to generate repository file. For version 10.1, the file content as blow:

# MariaDB 10.1 CentOS repository list - created 2016-11-04 03:20 UTC



name = MariaDB

baseurl =



Installation command:

sudo yum install MariaDB-server MariaDB-client

Command to secure Mysql (By default, root doesn’t have password)

sudo service mariadb start

sudo mysql_secure_installation
Written on November 3, 2016