1,使用service 启动、关闭MySQL服务
service mysql start
service mysql stop
service mysql restart 运行上面命令,其实是service命令去找/etc/init.d下的相关的mysql脚本去执行启动、关闭动作。 2,使用/etc/init.d/mysql启动、关闭MySQL服务,
[[email protected] bin]# /etc/init.d/mysql start
Starting MySQL....[ OK ]
[[email protected] bin]# /etc/init.d/mysql stop
Shutting down MySQL..[ OK ]
[[email protected] bin]#
时间: 2024-10-07 10:55:28