在Mac中关闭mysql服务的方法
1.关闭mysql服务
sudo /usr/local/mysql/support-files/mysql.server stop
2.启动mysql服务
sudo /usr/local/mysql/support-files/mysql.server start
3.重启mysql服务
sudo /usr/local/mysql/support-files/mysql.server restart