When I first set up the new Mac Mini server I knew I wanted to run MySql. Installing it was “interesting” … to say the least. Not really difficult but there is a lot unsaid in the instructions. I may get into that later but, suffice to say, I did get it installed fine.
One thing I wanted, though, was to have MySql start when the system starts. As OSX, server or not, does not use “rc” files or /etc/init.d or even crontab to run periodic tasks I needed to develop an “OSX Native” solution. The MySql documentation references /Library/StartupItems but this is not correct since OSX 10.5.
The acceptable method is through launchd which is actually very powerful but a bit more complex to set up. Although the configuration files [called PLISTs] look complex they are really simple XML files that you can create with any text editor.
You may read about the results, successful I might add, on the page: Using OSX Launchd to run MySql at startup