Vim /etc/hostconfig and removed the line MYSQLCOM=-YES-Īfter this I installed mysql using homebrew using command brew install mysql.Īfter installation when I tried to run mysql -u root It throws the following error Sudo rm -rf /Library/PreferencePanes/MySQL* Sudo rm -rf /Library/StartupItems/MySQLCOM for this I followed the instruction as mentioned below I’m trying to reinstall mysql on my MAC OS X Yosemite.