Search

 

Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-30
Q. How to enable and run MySQL/MariaDB on CentOS 7?

A. Enable and run MariaDB in Centos 7
MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easy to integrate into most MySQL deployments.

Installing MariaDB is as simple as running just one command:
# yum -y install mariadb-server mariadb

And then start MySQL, now MariaDB:
# systemctl start mariadb.service

Be sure that MySQL/MariaDB starts at boot:
# systemctl enable mariadb.service

To check the status of MySQL/MariaDB:
# systemctl status mariadb

To stop MySQL/MariaDB:
# systemctl stop mariadb

Check the installation with the command client:
# mysql

This page has been viewed 800 times

Other questions in this category Other questions in this category
1. How to install OpenVZ Virtualization on CentOS 6 (viewed 4713 times)
2. How to Install-Uninstall Clam Antivirus? (viewed 915 times)
3. How to install cPanel & WHM? (viewed 903 times)
4. How to install Webmin on CentOS? (viewed 825 times)
5. How to install wget command on CentOS? (viewed 824 times)
6. How to Uninstall MySQL? (viewed 789 times)
7. How To Install cPanel on a Virtual Server Running Centos 6? (viewed 779 times)
8. How to install VNC on CentOS? (viewed 684 times)

Return to Search

Back to Top