centos7自带是mariadb,一个MysqL的变种。
查看有没有安装过:
yum list installed MysqL*
rpm -qa | grep MysqL*
安装MysqL软件(mariadb)
yum install MysqL*
启动MysqL
systemctl start mariadb.service 或者 systemctl start MysqLd.service
结束
systemctl stop mariadb.service 或者 systemctl stop MysqLd.service
重启
systemctl restart mariadb.service 或者 systemctl restart MysqLd.service
开机自启
systemctl enable mariadb.service 或者 systemctl enable MysqLd.service 原文链接:https://www.f2er.com/centos/379103.html