Home  >  Article  >  Operation and Maintenance  >  How to check whether mysql is installed in centos system

How to check whether mysql is installed in centos system

王林
王林Original
2020-03-19 17:35:253870browse

How to check whether mysql is installed in centos system

centos7 comes with mariadb, a variant of mysql.

Check whether it has been installed:

yum list installed mysql*
rpm -qa | grep mysql*

(Recommended tutorial: centos usage tutorial)

Expand knowledge:

Install mysql Software (mariadb)

yum install mysql*

Start mysql

systemctl start mariadb.service 或者 systemctl start mysqld.service

End

systemctl stop mariadb.service 或者 systemctl stop mysqld.service

Restart

systemctl restart mariadb.service 或者 systemctl restart mysqld.service

Start up automatically Kai

systemctl enable mariadb.service 或者 systemctl enable mysqld.service

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check whether mysql is installed in centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What system is centos?Next article:What system is centos?