brew services run mysql # 启动mysql 服务 brew services start mysql # 启动 mysql 服务,并注册开机自启 brew services stop mysql # 停止 mysql 服务,并取消开机自启 brew services restart mysql # 重启 mysql 服务,并注册开机自启 brew services cleanup # 清除已卸载应用的无用配置
start 会开启自启动。很好很强大。