Home >Operation and Maintenance >CentOS >How to check whether the mysql service is started in centos7
You can determine whether the mysql service is started by querying the monitoring port or querying the process.
1. Query port
#netstat -tulpn
As shown in the picture:
2. Query process
ps -ef | grep mysqld
If there are two processes mysqld_safe and mysqld, it means that the MySQL service is currently starting;
Recommended tutorial: centos tutorial
The above is the detailed content of How to check whether the mysql service is started in centos7. For more information, please follow other related articles on the PHP Chinese website!