How to check whether mysql is installed in centos system

王林
Release: 2020-03-19 17:35:25
Original
3836 people have browsed it

How to check whether mysql is installed in centos system

centos7 comes with mariadb, a variant of mysql.

Check whether it has been installed:

yum list installed mysql*
rpm -qa | grep mysql*
Copy after login

(Recommended tutorial: centos usage tutorial)

Expand knowledge:

Install mysql Software (mariadb)

yum install mysql*
Copy after login

Start mysql

systemctl start mariadb.service 或者 systemctl start mysqld.service
Copy after login

End

systemctl stop mariadb.service 或者 systemctl stop mysqld.service
Copy after login

Restart

systemctl restart mariadb.service 或者 systemctl restart mysqld.service
Copy after login

Start up automatically Kai

systemctl enable mariadb.service 或者 systemctl enable mysqld.service
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check whether mysql is installed in centos system. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!