How to Install MariaDB 10.1 on CentOS 7?
In this tutorial we will explain the process of installing MariaDB 10.1 including the latest available version of it on centOS 7 Dedicated Server.
- An up-to-date CentOS 7 Dedicated Server.
- An active sudo user.
1st Step: Create the MariaDB 10.1 Yum repo file
cat <<EOF | sudo tee -a /etc/yum.repos.d/MariaDB.repo
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
The command and coding for setting up latest version of MariaDB 10.x may differ in the upcoming days. It is always recommended to check out the official website of MariaDB to know about the latest code.
2nd Step: Install MariaDB 10.1 Database using YUM Command
sudo yum install MariaDB-server MariaDB-client -y
3rd Step: Begin the MariaDB service & make it auto-start on system boot
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
4th Step: Secure the installation of MariaDB Database
Reply the question as below, and make sure that you will make use of your own MariaDB root login:
- Get in the current password for root and press enter button
- Set root password? [Y/n]: Press Y
- New password: your-MariaDB-root-password
- Re-enter new password: Same MariaDB-root-password
- Remove anonymous users? [Y/n]: Press Y
- Disallow root login remotely? [Y/n]: Press Y
- Remove test database & access to it? [Y/n]: press Y
- Reload privilege tables now? [Y/n]: Press Y
All done, hereinafter, you can make use of MariaDB to build and manage MySQL databases based on your needs for your dedicated server.