Created
December 4, 2009 19:41
-
-
Save indirect/249291 to your computer and use it in GitHub Desktop.
mysql binary launchd plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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