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]# 

 

posted @ 2017-04-12 10:44  彼扬  阅读(46875)  评论(0编辑  收藏  举报

感谢您的阅读,如果有了您的奉献系统会更加完善