TIP:
If you are using MySQL version 4 (in beta as of this writing),
replace /usr/local/mysql/bin/safe_mysqld with
/usr/local/mysql/bin/mysqld_safe.
Because it consults the settings of the $MYSQL
environment variable, the startup script won't do
anything unless you've enabled MySQL in the
/etc/hostconfig file. To do this, add the
following line to /etc/hostconfig:
MYSQL=-YES-
Mac OS X does not recognize any special connections between
hostconfig entries and startup scripts. Instead,
the startup script sources the /etc/rc.common
file, which in turn sources hostconfig. The
directives in hostconfig are merely environment
variables, and the startup script checks the value of the variables
that control its behavior (in this case, $MYSQL).
You can manually start, stop, and restart MySQL by invoking this
script from the command line:
/Library/StartupItems/MySQL/MySQL start
/Library/StartupItems/MySQL/MySQL restart
/Library/StartupItems/MySQL/MySQL stop