Uninstalling MySQL from OS X 10.6 (Snow Leopard)
After doing an OS X reinstall, I went to reinstall MySQL (version, 5.5.11). After a successful install, I couldn’t get mysql to start. The service was failing to start with the error
mysqld unknown option '--skip-locking'
I went back to install MySQL 5.1, but it wouldn’t install, complaining that a newer version was already installed. To completely uninstall MySQL and all of its pieces do this
First, back up your databases with mysqldump!!!!
Second, stop the database server (if it’s running)
Then open your terminal and run the following commands (hit enter/return after each command):
/etc/hostconfig and remove the line