Home  >  Article  >  Operation and Maintenance  >  How to check if MySQL is installed on CentOS

How to check if MySQL is installed on CentOS

angryTom
angryTomOriginal
2020-03-31 18:06:257422browse

How to check if MySQL is installed on CentOS

How to check whether MySQL is installed on CentOS

centos7 comes with mariadb, a variant of mysql.

Method 1:

Check whether MySQL is installed:

(Free learning video tutorial recommendation: mysql video tutorial)

yum list installed mysql*

Method 2:

rpm -qa | grep mysql*

Method 3:

Enter in the terminal:

whereis mysql

Press Enter, if you have installed mysql, the file installation address will be displayed

This article comes from the PHP Chinese website, CentOS usage tutorial column, more related Please pay attention to this column for tutorials!

The above is the detailed content of How to check if 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