在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
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: 如何在MySQL中进行数据备份和恢复