Skip to content

Instantly share code, notes, and snippets.

@indirect
Created December 4, 2009 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indirect/249291 to your computer and use it in GitHub Desktop.
Save indirect/249291 to your computer and use it in GitHub Desktop.
mysql binary launchd plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>Program</key>
<string>/usr/local/mysql/bin/mysqld_safe</string>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>mysql</string>
<key>WorkingDirectory</key>
<string>/usr/local/mysql</string>
</dict>
</plist>
# After installing MySQL from the binary DMG, download and install MySQL launchctl startup item:
cd /Library/LaunchDaemons
sudo curl -O http://gist.github.com/raw/249291/bcd9de530c5a0922b374582f29e5ec99388975f2/com.mysql.mysqld.plist
sudo launchctl load com.mysql.mysqld.plist
# Test your mysql installation is working (optional)
mysql -uroot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment