卸载需求:由于安装成功使用之后,过几天我又去登录mysql,结果登不上了一直报,Access denied for user 'root'@'localhost' (using password: YES)!找了好多方法都不行!我只有卸载了!下面是卸载过程!
终端:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql
调用vim /etc/hostconfig,然后删掉这一行: MYSQLCOM=-YES-,control+O回车保存,control+X退出编辑界面)
注意:如果还没有删干净,就在finder-Go-gotofolder之下输入/usr/local,看有没有重复的mysql文件,有的话就彻底删除。