Somehow, I either forgot my password, or I did something to mess up my MySQL instance. it is a development machine, so I don’t really care about the databases on it. I just wanted to remove it completely from my machine. I actually had two copies of mysql installed. One from Mac Ports and the other was the package directly from MySQL for the Mac.
I used the following commands to completely remove mysql from my system.
sudo port uninstall mysql5-server sudo port uninstall mysql5
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*
Thanks to Rob Allen.
Post a Comment