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