Restarting MySQL Server on Mac OS X

Tested on:

Type the following at the Terminal:

sudo /usr/local/mysql/support-files/mysql.server start
sudo /usr/local/mysql/support-files/mysql.server stop

This is useful for restarting the MySQL server via the command line on Mac.