Uninstalling MySQL (64-bit) from Snow Leopard (OS X 10.6)

I've been setting up my development environment on my recent Snow Leopard installation and installed the MySQL BETA 64 bit version. This was a mistake. I'm not sure what the problem was but I was never able to get the service to start so I downloaded the 32 bit GA version to be on the safe side. Lo and behold, when I tried to install it I received an error that stated I couldn't install because I had a newer version installed. I found some instructions on how to do this and wanted to share. I found this information here and I believe the original source is referenced in that post. These were the instructions:

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-
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*

These commands worked perfectly but I still received the error when installing the 32-bit version. I then found a user who commented that in Snow Leopard, receipts have been moved to /private/var/db/receipts and they take the format of com.mysql.*. Once I removed these receipts I was good to go.

I don't know how common the problem is but this is one of those practically instant solutions and I hope it helps.

No comments:

Post a Comment


Bookmark and Share