centos7怎么启动mysql
2017-11-08
展开全部
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
查看有没有安装过:
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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询