1、启动mysql服务
systemctl start mysqld.service
2、停止mysql服务
systemctl restart mysqld.service
3、重启mysql服务
systemctl restart mysqld.service
4、查看mysql服务当前状态
systemctl status mysqld.service
5、设置mysql服务开机自启动
systemctl enable mysqld.service
6、停止mysql服务开机自启动
systemctl disable mysqld.service