Uninstall MySQL on a Mac

Steps to completely uninstall MySQL from a Mac is a lot more involved than I thought.

Here are the steps:

    Stop the database server
    sudo rm /usr/local/mysql
    sudo rm -rf /usr/local/mysql*
    sudo rm -rf /Library/StartupItems/MySQLCOM
    sudo rm -rf /Library/PreferencePanes/My*
    edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
    rm -rf ~/Library/PreferencePanes/My*
    sudo rm -rf /Library/Receipts/mysql*
    sudo rm -rf /Library/Receipts/MySQL*
    sudo rm -rf /private/var/db/receipts/*mysql*
Uninstall MySQL on a Mac

Leave a Reply

Your email address will not be published. Required fields are marked *