mac下停止和启动mysql命令

作者: php 发布时间: 2017-05-17 浏览: 1338 次 编辑

在Mac OS X启动和停止MySQL服务的命令

启动MySQL服务

sudo /usr/local/Cellar/mysql/5.7.18_1/support-files/mysql.server start

停止MySQL服务

sudo /usr/local/Cellar/mysql/5.7.18_1/support-files/mysql.server stop

重启MySQL服务

sudo /usr/local/Cellar/mysql/5.7.18_1/support-files/mysql.server restart


注意: /usr/local/Cellar/mysql/5.7.18_1/support-files/mysql.server 匹配自己mysql安装的路径

标签: php mysql mac