Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

homebrew.mxcl.mysql.plist launchctl load error

Tags:

I brew installed mysql and want to launchd start mysql at login.

brew install mysql ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist 

The brew install was successful, but after the last command, it shows

Could not find domain for  

How to resolve this issue?

System info: Mac OS X 10.10 Yosemite, brew installed mysql-5.6.21.

On my other machine (same OS, newer and less used), the above three commends were successful and mysql indeed automatically start after restarting the machine.

like image 578
reijz Avatar asked Nov 28 '14 13:11

reijz


2 Answers

The user running the command must be logged in via the GUI. Then, the command will work over both SSH and with a local terminal on the machine.

like image 185
Kevin Chen Avatar answered Sep 19 '22 09:09

Kevin Chen


I had this issue when I was trying to start postgresql after installing it via homebrew, although previously it had worked fine. I later realised that it only failed when run remotely via SSH - when I used a local terminal it began without problems.

like image 34
Hew Avatar answered Sep 20 '22 09:09

Hew