centos 7怎么启动mysql

2024-11-16 08:52:05
推荐回答(2个)
回答1:

1、设置开机自启动
chkconfig mysqld on
2、/etc/init.d/mysqld start
/etc/init.d/mysqld stop
3、centos6以前
services mysqld start
services mysqld stop
4、centos7需要用systemctl
systemctl start mysqld
systemctl stop mysqld

回答2:

service mysqld start