美文网首页
Mac,Linux命令行下启动停止MySQL

Mac,Linux命令行下启动停止MySQL

作者: morningao | 来源:发表于2016-11-02 15:46 被阅读0次

http://chenrongrong.info/2015/01/27/mysql-command-restart.html

1. Linux下启动/停止/重启启动命令如下:

/etc/init.d/mysqld start

/etc/init.d/mysqld stop

/etc/init.d/mysqld restart

2. Linux下以Service方式启动/停止/重启MySQL命令:

service mysqld start

service mysqld stop

service mysqld restart

service命令就是调用/etc/init.d/下边的脚本来启动服务,等于直接使用/etc/init.d/* start

3. MAC OX命令行启动/停止/重启MySQL命令:

/usr/local/Cellar/mysql/5.7.19/support-files/mysql.server start

/usr/local/Cellar/mysql/5.7.19/support-files/mysql.server stop

/usr/local/Cellar/mysql/5.7.19/support-files/mysql.server restart

相关文章

网友评论

      本文标题:Mac,Linux命令行下启动停止MySQL

      本文链接:https://www.haomeiwen.com/subject/bgwvuttx.html