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: 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.
#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!