安装MySQLWorkbench,然后设置:

1
export PATH=$PATH:/Applications/MySQLWorkbench.app/Contents/MacOS

参考