Home >Operation and Maintenance >CentOS >How to check whether mysql is installed in centos

How to check whether mysql is installed in centos

尚
Original
2020-03-31 14:47:363637browse

How to check whether mysql is installed in centos

How to check whether mysql is installed in centos:

1. Check whether it has been installed:

yum list installed mysql*
rpm -qa | grep mysql*

2. Check whether there is an installation package:

yum list mysql*

How to install mysql in centos:

1. Install mysql client:

yum install mysql

2. Install mysql server:

yum install mysql-server
yum install mysql-devel

Recommended tutorial: centos tutorial

The above is the detailed content of How to check whether mysql is installed in centos. 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