Home  >  Article  >  Database  >  How to check whether the mysql service is started in linux

How to check whether the mysql service is started in linux

coldplay.xixi
coldplay.xixiOriginal
2020-10-16 11:07:246091browse

Linux method to check whether the mysql service is started: first open the terminal; then enter the relevant command statement to check, the code is [ # service mysqld status] or [ # service mysql status].

How to check whether the mysql service is started in linux

How to check whether the mysql service is started in Linux:

There are many services under Linux, today I will write how Check whether the service is started, taking mysql as an example

Use the command # service mysqld status

or # service mysql status command to check the startup of mysql Status

  • If mysqld is stopped, it means that the mysql service is stopped.

  • If mysqld is running, it means that the mysql service is Startup status

Related free learning recommendations:mysql database(Video)

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!

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