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

原文地址:https://www.cnblogs.com/We612/p/13792575.html