linux下mysql 启动命令

1,使用service 启动、关闭MySQL服务

service mysql start
service mysql stop
service mysql restart


运行上面命令,其实是service命令去找/etc/init.d下的相关的mysql脚本去执行启动、关闭动作。


2,使用/etc/init.d/mysql启动、关闭MySQL服务,

[root@DB-Server bin]# /etc/init.d/mysql start

Starting MySQL....[  OK  ]

[root@DB-Server bin]# /etc/init.d/mysql stop

Shutting down MySQL..[  OK  ]

[root@DB-Server bin]# 


原文地址:https://www.cnblogs.com/beyang/p/6698054.html