如何从 Mac OS X 卸载 MySQL?

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

问题描述

我不小心在 Snow Leopard 的 Intel Mac 上安装了 PowerPC 版本的 MySQL,它安装没有问题,但当然无法正常运行.只是我没有引起足够的重视.现在,当我尝试安装正确的 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:mySQL - 使用三个表中的数据和列创建新表 下一篇:设置 Django 以使用 MySQL

相关文章