brew安装mysql为系统服务

默认情况下,使用brew install mysql 安装完mysql以后,需要手动启动mysql。为了方便以后使用,这里将mysql安装成系统服务。

brew info mysql 已经给了.plist文件,只需要load一下就可以,plist文件名不一定是com.mysql.mysqld.plist, 可以先到 `brew –prefix mysql` 目录看下。具体如下:

mkdir -p ~/Library/LaunchAgents
cp `brew --prefix mysql`/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist

其实http://stackoverflow.com/questions/8014500/autostart-mysql-on-boot-from-terminal这里有说。

mkdir -p ~/Library/LaunchAgents
cp `brew --prefix mysql`/*mysql*.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/*mysql*.plist

15 thoughts on “brew安装mysql为系统服务

  1. Pingback: ทางเข้า vegus168

  2. Pingback: 메이저사이트

  3. Pingback: 온라인카지노

  4. Pingback: 안전바카라

  5. Pingback: https://perfumex.com.pl/forum/

  6. Pingback: 바카라 사이트 신고

  7. Pingback: 바카라 사이트 홍보

  8. Pingback: child porn

  9. Pingback: Professor Herb CBD - CBD Hemp Flowers

  10. Pingback: teacup english bulldog for sale near me

  11. Pingback: dang ky 188bet

  12. Pingback: http://63.250.38.81/

  13. Pingback: order viagra online

  14. Pingback: blazingtraderapp.com

  15. Pingback: Arcades Universe

Comments are closed.