

If you get an error message such as Permission denied to the data directory, use this command: Troubleshooting MySQL Server Data Directory If you want to run the server from the command line, use the invocation sudo -u mysql /usr/local/bin/mysql/bin/mysqld. Sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop If you want to stop the server while the machine is running (e.g. Simply rebooting will also cause the server to start. Sudo /Library/StartupItems/MySQLCOM/MySQLCOM start You enable it if you install the MySQLStartupItem.pkg included in the MySQL distribution's disk image.įor the curious, all this package does is create a startup item /Library/StartupItems/MySQLCOM and set a value in /etc/hostconfig.Īfter installation, the MySQL server needs to be started.

The MySQL distribution can set itself to start automatically on boot. You can ignore all preference pane related instructions in the backend setup guide for OSX. It is not necessary to install MySQL.prefPane.
