How do you uninstall MySQL from Mac OS X?(如何从 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从 Mac OS X 卸载 MySQL?
基础教程推荐
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01