Specific method:
You can use the following command to check the startup status of mysql:
# service mysqld status
Recommended learning video tutorial: linux video tutorial
or
# service mysql status
If it is mysqld is stopped
, it means that the mysql service is stopped;
If it ismysqld is running
It means that the mysql service is started.
More related articles and tutorials are recommended: linux tutorial
The above is the detailed content of How to check whether the mysql service is started in linux. For more information, please follow other related articles on the PHP Chinese website!