First of all, follow the tutorial: Uninstall all those broken versions of MySQL and re-install it with Brew on Mac Mavericks and let's see what we'll face.
When I trying to run
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
I get this error: