- Create a dir in /Library/StartupItems called mysql
- make a shell file called mysql containing (and make it executable)(this
assumes that user-id stuff is in /etc/my.cnf):
#!/bin/sh
. /etc/rc.common
if [ "${mysql:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Starting MySQL Server"
cd /usr/local/mysql;./bin/safe_mysqld &
fi
- Make a file called StartupParameters.plist containing:
{
Description = "MySQL Server";
Provides = ("mysql");
Requires = ("NetInfo");
OrderPreference = "None";
Messages =
{
start = "Starting MySQL Server";
stop = "Stopping MySQL Server";
};
}
- edit /etc/hostconfig adding the following line:
mysql=-YES-
- That's it.
--
John McCauley - CTGi 703-352-0590
The CTGi Web page: http://www.ctgusa.com
The BMD web page: http://www.bmdc.org
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php