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

How to check whether mysql is installed on centos

尚
Original
2020-03-21 16:54:237880browse

How to check whether mysql is installed on centos

Determine whether to install mysql by checking the file installation path.

Enter in the terminal:

whereis mysql

Press Enter. If you have installed mysql, the file installation address will be displayed, such as mine (the installation address may be different)

[root@localhost ~]# whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

Explanation: usr/lib/mysql refers to: the installation path of mysql.

If you are installing using rpm, check the RPM PACKAGE:

rpm -qa | grep -i mysql

Check mysql service:

service mysql status

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of How to check whether mysql is installed on centos. 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