Thu, 23 Aug 2007

Starting and Stopping MySql on Mac OS X

Posted by Ben Thu, 23 Aug 2007 20:27:00 GMT

Just a quick reminder, since I always forget how to do this in OS X (which uses launchd).

$ sudo launchctl start org.macports.mysql5
$ sudo launchctl stop org.macports.mysql5

(MySql 5 installed from MacPorts)

In Mac OS X v10.4 Tiger, Apple introduced a new system startup program called launchd. The launchd daemon takes over many tasks from cron, xinetd, mach_init, and init, which are UNIX programs that traditionally have handled system initialization, called systems scripts, run startup items, and generally prepared the system for the user. And they still exist on Mac OS X Tiger, but launchd has superseded them in many instances. These venerable programs are widely used by system administrators, open source developers, managers of web services, even consumers who want to use cron to manage iCal scheduling, and they can still be called with launchd.

Getting Started with launchd

Comments

Leave a response

Comments