Nov 02, 2014; 23:27
Steffan A. Cline
[OT] MySQL on Yosemite
It seems the StartupItem for MySQL and a few other things are broken under
Yosemite. So, I wrote this little launch daemon.
When you run the latest installer for < Yosemite, do the custom choice and
do NOT install the startup item. The control panel and daemon is all you
need.
Use the bbedit command, vi, nano or whatever else floats your boat.''
File Name: /Library/LaunchDaemons/com.mysql.daemon.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>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.daemon</string>
<key>Program</key>
<string>/usr/local/mysql/bin/mysqld</string>
<key>ProgramArguments</key>
<array>
<string>--user=mysql</string>
<string>--basedir=/usr/local/mysql</string>
<string>--datadir=/var/lib/mysql</string>
<string>--plugin-dir=/usr/local/mysql/lib/plugin</string>
<string>--log-error=/var/log/mysqld.log</string>
<string>--pid-file=/var/lib/mysql/mysqld.pid</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>Umask</key>
<integer>7</integer>
<key>GroupName</key>
<string>_mysql</string>
<key>UserName</key>
<string>_mysql</string>
<key>WorkingDirectory</key>
<string>/usr/local/mysql</string>
</dict>
</plist>
sudo chown root:wheel /Library/LaunchDaemons/com.mysql.daemon.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.daemon.plist
sudo launchctl load =ADw /Library/LaunchDaemons/com.mysql.daemon.plist
NOTE: Be sure to use YOUR data directory in the config. I rearranged mine to
closer match the way MySQL is installed on CentOS.
On a side note, it seems that not only the apache mod for Apache 2.4 is
needed to make LP8.6 work, the StartupItem may need a rewrite too=8A Time for
another LaunchDaemon.
Thanks,
Steffan
---------------------------------------------------------------
T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline Steffan@ExecuChoice.net
http://www.ExecuChoice.net Phoenix, Arizona USA
---------------------------------------------------------------
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>