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 684 times

Other questions in this category Other questions in this category
1. How to install OpenVZ Virtualization on CentOS 6 (viewed 4471 times)
2. How to install cPanel & WHM? (viewed 773 times)
3. How to Install-Uninstall Clam Antivirus? (viewed 743 times)
4. How to install wget command on CentOS? (viewed 712 times)
5. How to install Webmin on CentOS? (viewed 707 times)
6. How To Install cPanel on a Virtual Server Running Centos 6? (viewed 665 times)
7. How to Uninstall MySQL? (viewed 661 times)
8. How to install VNC on CentOS? (viewed 579 times)

Return to Search

Back to Top