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

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

查看状态:

systemctl status mysql.service 或 service mysqld status

设置开机自启:

systemctl enable mysqld.service

启动服务:

systemctl start mysqld.service 或 service mysqld start

关闭服务:

systemctl shutdown mysql.service 或 service mysqld shutdown

猜你喜欢

转载自blog.csdn.net/qq_42862247/article/details/118597545