在Mac OS X 10.6.6中重新安装MySql [英] Re-install MySql in mac os x 10.6.6

查看:156
本文介绍了在Mac OS X 10.6.6中重新安装MySql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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/

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

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

但是我遇到以下错误:

安装失败 安装程序遇到错误,导致安装失败.请与软件制造商联系以获得帮助.

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

推荐答案

看看安装程序日志-打开安装程序;按Command-L显示日志,然后按Command-3增加详细信息级别;尝试安装.

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.

以下是评论摘要

OP :错误日志显示以下提到的

OP: The error log displays the below mentioned

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

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

Paul :看来您没有用户"mysql".通过运行dscl确认.列出/Users | grep mysql.您应该看到_mysql作为结果.

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 :运行dscl . list /Users|grep mysql它没有返回任何内容

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

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

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

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

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.

这篇关于在Mac OS X 10.6.6中重新安装MySql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆