How to install MariaDB on our server?

kumkumsharma

Administrator
Staff member
First you can install MariaDB with below command on server:

Code:
#yum install mariadb-server
OR

Code:
#yum install -y mariadb mariadb-server
Now restart MariaDB while booting with commands:

Code:
#systemctl start mariadb.service - Restart MariaDB

#systemctl enable mariadb.service - Auto run when boot
With below command you can check status of MariaDB/MySQL.

Code:
#systemctl status mariadb
You have to stop MySQL/MariaDB and check the installation.

Code:
#systemctl stop mariadb
#mysql
With all above steps your MariaDB will be installed and you will get Welcome message.
 
Top