如何从 Mac OS X 卸载 MySQL?

How do you uninstall MySQL from Mac OS X?(如何从 Mac OS X 卸载 MySQL?)
本文介绍了如何从 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Can#39;t Create Entity Data Model - using MySql and EF6(无法创建实体数据模型 - 使用 MySql 和 EF6)
MySQL select with CONCAT condition(MySQL选择与CONCAT条件)
Capitalize first letter of each word, in existing table(将现有表格中每个单词的首字母大写)
How to retrieve SQL result column value using column name in Python?(如何在 Python 中使用列名检索 SQL 结果列值?)
Update row with data from another row in the same table(使用同一表中另一行的数据更新行)
Exporting results of a Mysql query to excel?(将 Mysql 查询的结果导出到 excel?)