How to install MariaDB on CentOS 7?

1. Insatll MariaDB on server - 
 #yum install mariadb-server
 OR
 #yum install -y mariadb mariadb-server


2. Restart MariaDB auto run when boot -
#systemctl start mariadb.service - Restart MariaDB 
#systemctl enable mariadb.service - Auto run when boot 


3. Check the status of MySQL/MariaDB - 
#systemctl status mariadb

4. Stop MySQL/MariaDB - 
#systemctl stop mariadb

5. Check the installation -

#mysql

Output will be as follow - 

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.40-MariaDB MariaDB Server

Copyright © 2000, 2014, Oracle, Monty Program Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install AVG Antivirus scanner on Ubuntu?

AVG free is antivirus which protects from spyware as well malware. It is free to use for private...

How to setup a WordPress website on plain Centos server?

The following steps have been successfully tested on a plain centos server. Now lets start...

How to change the port number of Apache Web Server?

Default port to access the Apache is 80. Secure port for communicating with world for Apache is...

How to install Postfix on CentOS?

Postfix is an open-source Mail Transport Agent (MTA), which supports protocols like LDAP, SMTP...

How to install SOAP on CentOS?

Install SOAP on CentOS 1) Fire below command - yum install php-soap Output will be as follow...

Powered by WHMCompleteSolution