使用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
posted @ 2018-03-25 17:29  代码改变世界-Coding  阅读(1340)  评论(0编辑  收藏  举报