Installing And Configuring MariaDB On CentOS 7
Posted by Daniel Naval, Last modified by Daniel Naval on 11 May 2019 06:23 PM
What is MariaDB?
MariaDB Server is another most popular open source database server in the world which is also made by developers of MySQL.
You need to be logged in to your CentOS 7 with root privileges (sudo su -) before proceeding with the installation.
yum install -y mariadb-server
Once it is installed, you need to start and enable the MariaDB service using the commands below:
systemctl start mariadb systemctl enable mariadb
When you enable the MariaDB service, it will start the service everytime the server is booted up.
To check if the service is installed and running successfully, you may use this command:
This will show the screen below:
Next, you will need to run the script that will perform the security setup on your MariaDB Server.
On this part, it is recommended to choose Yes on all the questions.
Connecting to MariaDB from CentOS 7 CLI
mysql -u root -p
You will then be prompted to enter the password which you have set previously after you initiated the secure installation. Once logged in, you will see the screen as shown below: