如何从Mac OS X卸载MySQL? [英] How do you uninstall MySQL from Mac OS X?

查看:100
本文介绍了如何从Mac OS X卸载MySQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Snow Leopard的Intel Mac上意外地安装了MySQL的PowerPC版本,并且没有问题,但是当然不能正常运行.我只是没有给予足够的重视.现在,当我尝试安装正确的x86版本时,它说无法安装,因为已经安装了较新的版本. Google查询使我执行了这些操作/删除了这些文件以将其卸载:

I accidentally installed the PowerPC version of MySQL on my Intel Mac in Snow Leopard, and it installed without a problem but of course doesn't run properly. I just didn't pay enough attention. Now when I try to install the correct x86 version it says that it can't install because a newer version is already installed. A Google query led me to perform these actions/delete these files to uninstall it:

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
rm -rf ~/Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*

最后从/etc/hostconfig

他们似乎根本没有帮助.我仍然收到有关存在较新版本的相同消息.我尝试安装一个甚至更高的版本(当前的Beta),它也给我同样的消息,说明已经安装了一个更高的版本.我无法从Prefs窗格中卸载它,因为我也从未安装过PrefPane.

They haven't seemed to help at all. I am still receiving the same message about there being a newer version. I tried installing an even newer version (the current Beta) and it also gave me the same message about a newer version already being installed. I can't uninstall it from the Prefs Pane because I never installed the PrefPane also.

推荐答案

也尝试运行

sudo rm -rf /var/db/receipts/com.mysql.*

这篇关于如何从Mac OS X卸载MySQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆