Home > Article > Operation and Maintenance > 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!