MacOSX: autostart mysql on boot

前端 未结 7 885
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 08:41

I just installed mysql in terminal through homebrew.

Now when I try to connect to mysql it fails, but after I run mysqld it works..

So what I n

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 09:37

    mkdir -p ~/Library/LaunchAgents
    cp /usr/local/opt/mysql/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
    

提交回复
热议问题