Reinstale o MySQL com homebrew no MacOSX

Esta dica cobre a desinstalação do MacPorts, MySQL e reinstalação do MySQL com o HomeBrew.

Remova Macports:

sudo port -fp uninstall --follow-dependents installed

sudo rm
-rf /opt/local
sudo rm
-rf /Applications/DarwinPorts
sudo rm
-rf /Applications/MacPorts
sudo rm
-rf /Library/LaunchDaemons/org.macports.*
sudo rm
-rf /Library/Receipts/DarwinPorts*.pkg
sudo rm
-rf /Library/Receipts/MacPorts*.pkg
sudo rm
-rf /Library/StartupItems/DarwinPortsStartup
sudo rm
-rf /Library/Tcl/darwinports1.0
sudo rm
-rf /Library/Tcl/macports1.0
sudo rm
-rf ~/.macports

Remova o MySQL:

sudo rm /usr/local/mysql
sudo rm
-rf /usr/local/mysql*
sudo rm
-rf /Library/StartupItems/MySQLCOM
sudo 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*
rm -rf ~/Library/PreferencePanes/My*

Instale o HomeBrew e o MySQL:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew install mysql

Postado originalmente em: ( http://blog.codiez.co.za/2013/08/uninstall-mysql-macports-install-homebrew-mac-osx/ )