使用systemctl命令管理服务mysql
启动mysql
systemctl start mysqld.service
停止mysql
systemctl stop mysqld.service
重启mysql
systemctl restart mysqld.service
查看当前状态
systemctl status mysqld.service
设置开机自启
systemctl enable mysqld.service
停止开机自启
systemctl disable mysqld.service