MacOSX: autostart mysql on boot

前端 未结 7 884
隐瞒了意图╮
隐瞒了意图╮ 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

    You don't need to setup a plist anymore. The latest version of brew (1.3.4) as of Oct 2017, you can only run:

    brew services start

    and it will auto start every time you restart your computer. The command brew info gives you this

    To have launchd start mysql now and restart at login: brew services start mysql Or, if you don't want/need a background service you can just run: mysql.server start

提交回复
热议问题