如何从 Mac OS X 卸载 MySQL? - How do you uninstall MySQL from Mac OS X?

10/14 13:17
阅读数 0

问题:

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.我不小心在 Snow Leopard 的 Intel Mac 上安装了 PowerPC 版本的 MySQL,它安装没有问题,但当然不能正常运行。 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.现在,当我尝试安装正确的 x86 版本时,它说无法安装,因为已经安装了较新的版本。 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*

And finally removed the line MYSQLCOM=-YES- from /etc/hostconfig最后从/etc/hostconfig删除了 MYSQLCOM=-YES- 行

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.我尝试安装更新的版本(当前的 Beta),它也给了我关于已经安装的更新版本的相同消息。 I can't uninstall it from the Prefs Pane because I never installed the PrefPane also.我无法从 Prefs 窗格中卸载它,因为我也从未安装过 PrefPane。


解决方案:

参考一: https://en.stackoom.com/question/61g9
参考二: https://stackoom.com/question/61g9
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部