在 mac os x 10.6.6 中重新安装 MySql
我之前安装了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看安装程序日志 — 打开安装程序;按 command-L 显示日志,按 command-3 增加详细级别;尝试安装。
以下是评论摘要
OP:错误日志显示以下内容
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
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 anythingPaul: 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.