Fork me on GitHub

linux mysql的启动关闭状态查看命令汇总

环境:linux
操作:启动 关闭 查看mysql

设置开机自启:
systemctl enable mysqld.service

启动服务:
systemctl start mysqld.service 或 service mysqld start

关闭服务:
systemctl shutdown mysql.service 或 service mysqld shutdown

查看状态:
systemctl status mysql.service 或 service mysqld status

posted @ 2020-10-10 14:43  路痴队长  阅读(378)  评论(0编辑  收藏  举报