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