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

Other questions in this category Other questions in this category
1. How to install OpenVZ Virtualization on CentOS 6 (viewed 4389 times)
2. How to install cPanel & WHM? (viewed 731 times)
3. How to Install-Uninstall Clam Antivirus? (viewed 701 times)
4. How to install wget command on CentOS? (viewed 670 times)
5. How to install Webmin on CentOS? (viewed 662 times)
6. How To Install cPanel on a Virtual Server Running Centos 6? (viewed 620 times)
7. How to Uninstall MySQL? (viewed 618 times)
8. How to install VNC on CentOS? (viewed 528 times)

Return to Search

Back to Top