一、启动
1.查看启动命令所在目录
macdeMacBook-Pro:~ mac$ ps -ef|grep mysql
2.进入命令目录
macdeMacBook-Pro:~ mac$ cd /usr/local/mysql/bin
3.启动
macdeMacBook-Pro:bin mac$ sudo ./mysqld_safe &
二、关闭
1.进入命令目录
macdeMacBook-Pro:~ mac$ cd /usr/local/mysql/bin
2.关闭
macdeMacBook-Pro:bin mac$ sudo ./mysqladmin -u root -p shutdown