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

How to detect whether mysql is installed under linux

王林
Release: 2020-09-30 10:17:35
Original
12454 people have browsed it

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:    [确定]
Copy after login

If it has not been installed, it will prompt:

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

yum Install mysql

yum -y install mysql-server
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template