Installing MariaDB 10 on CentOS 7 / RHEL 7

Installing MariaDB became very easy on the latest CentOS /RHEL Linux version 7. During initial setup MariaDB has a tick in the graphical setup environment which enables MariaDB and replaces MySQL.

During installation the section
allows enabling a MariaDB server.

If you prefer the command line the installation can be performed with:
# yum install mariadb-server
MariaDB is shipped untuned and not protected with MariaDB version 5.5.35. 
No basic optimizations in the configuration file have been set and the root user has no password. 
An update will install the version 5.5.37. (The latest version of MariaDB October 2014 is Version 5.5.39).
# yum update
It is important to secure the server. MariaDB is shipped with a script to harden the system accordingly using a user dialog. 
It is highly recommended to use this script before creating and populating the databases.
# mysql_secure_installation
Install the latest Version 10 is an easy step since MariaDB's repository configuration wizard has now the latest CentOS/RHEL version available.
Before installing 10.0 it is important to perform a backup and remove the existing 5.5 version
if you have.
# yum remove mariadb-server mariadb-libs
Create the repository settings using the link and follow the steps MariaDB

Here is your custom MariaDB YUM repository entry for CentOS. Copy and paste it into a file
under /etc/yum.repos.d/ (we suggest naming the file MariaDB.repo or something similar).
# MariaDB 10.0 CentOS repository list - created 2016-01-25 08:01 UTC
name = MariaDB
baseurl =
After the file is in place, install MariaDB with:
# sudo yum install MariaDB-server MariaDB-client
You are now running the latest 10.0 version!
# /etc/init.d/mysql start
# mysql_upgrade

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment