美文网首页
MySQL启动与停止服务

MySQL启动与停止服务

作者: 实习的小白 | 来源:发表于2018-11-22 22:54 被阅读0次

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

相关文章

网友评论

      本文标题:MySQL启动与停止服务

      本文链接:https://www.haomeiwen.com/subject/jhgrqqtx.html