Mac上mariadb的启动与关闭

1. 启动

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist 

2. 关闭

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist 

 

经过试验,发现只有unload方法可以停止服务,其他如:mysqladmin shutdown、support-files/mysql.server stop均告失败。

原文地址:https://www.cnblogs.com/feika/p/4549978.html