Home  >  Article  >  Operation and Maintenance  >  How to detect whether mysql is installed under linux

How to detect whether mysql is installed under linux

王林
王林Original
2020-09-30 10:17:3512400browse

How to detect whether mysql is installed under Linux: execute the [service mysqld start] command. If it prompts [mysqld: unrecognized service], it means that mysql is not installed in the system. If mysql is successfully started, it means The mysql service has been installed.

How to detect whether mysql is installed under linux

#The daemon process of mysql is mysqld.

(Recommended tutorial: mysql tutorial)

If it has been installed, it will prompt:

[root@localhost ~]# service mysqld start
启动 MySQL:    [确定]

If it has not been installed, it will prompt:

[root@localhost ~]# service mysqld start
mysqld:未被识别的服务

yum Install mysql

yum -y install mysql-server

Related recommendations: php training

The above is the detailed content of How to detect whether mysql is installed under 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