Home > Article > Operation and Maintenance > 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*
(Recommended tutorial: centos usage tutorial)
Expand knowledge:
Install mysql Software (mariadb)
yum install mysql*
Start mysql
systemctl start mariadb.service 或者 systemctl start mysqld.service
End
systemctl stop mariadb.service 或者 systemctl stop mysqld.service
Restart
systemctl restart mariadb.service 或者 systemctl restart mysqld.service
Start up automatically Kai
systemctl enable mariadb.service 或者 systemctl enable mysqld.service
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!