Starting and Stopping MySQL From the Command Line
This is a task that is rarely needed if you use
the startup item, however, knowing how to start and stop MySQL is necessary when
upgrading MySQL or in some backup situations. These instructions apply to MySQL
4.0 or greater and Mac OS X and OS X Server binary installations.
Starting
MySQL
% sudo
echo
% sudo /usr/local/mysql/bin/mysqld_safe
&
Stopping
MySQL
% mysqladmin
shutdown
For scripts, simply run the
scripts as root (for example system crontab) and omit the sudo for
starting.
Posted: Thursday - June 17, 2004 at 12:58 PM