centos下怎么启动mysql

2024-11-16 12:29:13
推荐回答(1个)
回答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