在 mac os x 10.6.6 中重新安装 MySql

发布于 2024-10-18 13:16:15 字数 600 浏览 1 评论 0原文

我之前安装了 mysql-5.1.50-osx10.6-x86_64.dmg,然后使用下面的 belo 命令(在 stackoverflow 中找到)卸载了它,

$ sudo rm /usr/local/mysql
Password:
$ sudo rm -rf /usr/local/mysql*
$ sudo rm -rf /Library/StartupItems/MySQLCOM
$ sudo rm -rf /Library/PreferencePanes/My*
$ rm -rf ~/Library/PreferencePanes/My*
$ sudo rm -rf /Library/Receipts/mysql*
$ sudo rm -rf /Library/Receipts/MySQL*
$ sudo vi /etc/hostconfig
$ sudo rm -rf /var/db/receipts/com.mysql.mysql*
$ cd /Library/Receipts/

然后我尝试从 mysql-5.5.9-osx10.6-x86_64 重新安装。 dmg。

但是我收到以下错误:

安装失败 安装程序遇到错误,导致安装失败。请联系软件制造商寻求帮助。

I had earlier installed mysql-5.1.50-osx10.6-x86_64.dmg and then uninstalled it using the below belo command (found in stackoverflow)

$ sudo rm /usr/local/mysql
Password:
$ sudo rm -rf /usr/local/mysql*
$ sudo rm -rf /Library/StartupItems/MySQLCOM
$ sudo rm -rf /Library/PreferencePanes/My*
$ rm -rf ~/Library/PreferencePanes/My*
$ sudo rm -rf /Library/Receipts/mysql*
$ sudo rm -rf /Library/Receipts/MySQL*
$ sudo vi /etc/hostconfig
$ sudo rm -rf /var/db/receipts/com.mysql.mysql*
$ cd /Library/Receipts/

Then I have tried to reinstall from mysql-5.5.9-osx10.6-x86_64.dmg.

However I am getting the below error:

The installation failed
The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轮廓§ 2024-10-25 13:16:15

查看安装程序日志 — 打开安装程序;按 command-L 显示日志,按 command-3 增加详细级别;尝试安装。

以下是评论摘要

OP:错误日志显示以下内容

2 月 21 日 21:30:28 Sarbbottam-Bandyopadhyays-MacBook-Pro 安装[387]: ./postflight: chown: mysql: 参数无效

Paul: 看起来你没有用户“mysql” 。通过运行 dscl 来确认。列表 /Users|grep mysql.您应该看到 _mysql 作为结果。

OP:运行dscl。 list /Users|grep mysql 它没有返回任何内容

Paul:您的 mysql 用户丢失。 [以下是创建 MySQL 用户的说明][1] 执行此操作,然后运行安装程序

OP:非常感谢,它有效。我已经按照您的建议创建了 mysql 用户和组。运行安装程序。已安装。

Take a look at the installer log — open the Installer; press command-L to show the log, and command-3 to increase the detail level; attempt the install.

The below is a summary of the comments

OP: The error log displays the below mentioned

Feb 21 21:30:28 Sarbbottam-Bandyopadhyays-MacBook-Pro installd[387]: ./postflight: chown: mysql: Invalid argument

Paul: Looks like you don't have a user "mysql". Confirm that by running dscl . list /Users|grep mysql. You should see _mysql as the result.

OP: running dscl . list /Users|grep mysql It did not return anything

Paul: Your mysql user is missing. [Here are instructions for creating a MySQL user][1] Do that, and then run the installer

OP: Thanks a lot it worked. I have created the mysql user and the group as suggested by you. The ran the installer. It was installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文