我有一个旧版本的MySQL,但它工作得不好......所以我用Google搜索如何完成删除它并找到了这个:
http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html
然后做了:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
现在我在新的安装中得到这个:
我也运行了这个命令:
sudo rm /var/db/dslocal/nodes/Default/groups/_mysql.plist
sudo rm /var/db/dslocal/nodes/Default/users/_mysql.plist
sudo rm /var/db/receipts/com.mysql.mysql.bom
sudo rm /var/db/receipts/com.mysql.mysql..plist
对此有何帮助?
非常感谢, Nizzle先生。
更新
安装程序错误日志说:
Apr 13 00:18:31 nizzlesmymac installd[3203]: PackageKit: Install Failed: PKG: post-flight scripts for "com.mysql.mysql"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x101e45ac0 "An error occurred while running scripts from the package “mysql-5.5.11-osx10.6-x86_64.pkg”." {\n NSFilePath = "./postflight";\n NSLocalizedDescription = "An error occurred while running scripts from the package \U201cmysql-5.5.11-osx10.6-x86_64.pkg\U201d.";\n NSURL = "file://localhost/Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg";\n PKInstallPackageIdentifier = "com.mysql.mysql";\n}
更新
这是完整的安装错误日志:
Apr 13 08:26:50 NizzlesMyMac Installer[181]: @(#)PROGRAM:Installer PROJECT:Installer-430.1
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Hardware: MacBookPro8,1 @ 2.30 GHz (x 4), 4096 MB RAM
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Running OS Build: Mac OS X 10.6.7 (10J3250)
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: TMPDIR=/var/folders/Pu/Pu2sD3XgEiuSw9qDGflH8++++TI/-Tmp-/
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: SHELL=/bin/bash
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: HOME=/Users/rguillen
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: USER=rguillen
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: LOGNAME=rguillen
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: DISPLAY=/tmp/launch-4vyaek/org.x:0
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: SSH_AUTH_SOCK=/tmp/launch-K54BQh/Listeners
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: Apple_PubSub_Socket_Render=/tmp/launch-mwoG2K/Render
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: COMMAND_MODE=unix2003
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0
Apr 13 08:26:50 NizzlesMyMac Installer[181]: MySQL 5.5.11-community for Mac OS X Installation Log
Apr 13 08:26:50 NizzlesMyMac Installer[181]: Opened from: /Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg
Apr 13 08:26:50 NizzlesMyMac Installer[181]: fileURLForURL = x-disc://mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg
Apr 13 08:26:50 NizzlesMyMac Installer[181]: fileURLForURL = file://localhost/Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg
Apr 13 08:27:07 NizzlesMyMac runner[188]: Administrator authorization granted.
Apr 13 08:27:07 NizzlesMyMac Installer[181]: ================================================================================
Apr 13 08:27:07 NizzlesMyMac Installer[181]: User picked Standard Install
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Choices selected for installation:
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Install: "MySQL 5.5.11-community for Mac OS X"
Apr 13 08:27:07 NizzlesMyMac Installer[181]: mysql-5.5.11-osx10.6-x86_64.pkg : com.mysql.mysql : 5.5.11.1.0
Apr 13 08:27:07 NizzlesMyMac Installer[181]: ================================================================================
Apr 13 08:27:07 NizzlesMyMac Installer[181]: It took 0.00 seconds to summarize the package selections.
Apr 13 08:27:07 NizzlesMyMac Installer[181]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (\n "file://localhost"\n)
Apr 13 08:27:07 NizzlesMyMac Installer[181]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Apr 13 08:27:07 NizzlesMyMac Installer[181]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Will use PK session
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Starting installation:
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Configuring volume "Macintosh HD"
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Preparing disk for local booted install.
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Free space on "Macintosh HD": 263.32 GB (263317995520 bytes).
Apr 13 08:27:07 NizzlesMyMac Installer[181]: Create temporary directory "/var/folders/Pu/Pu2sD3XgEiuSw9qDGflH8++++TI/-Tmp-//Install.181cTqWGQ"
Apr 13 08:27:07 NizzlesMyMac Installer[181]: IFPKInstallElement (1 packages)
Apr 13 08:27:07 NizzlesMyMac installd[191]: PackageKit: ----- Begin install -----
Apr 13 08:27:07 NizzlesMyMac installd[191]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Apr 13 08:27:07 NizzlesMyMac installd[191]: PackageKit: packages=(\n "PKJaguarPackage <file://localhost/Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg>"\n)
Apr 13 08:27:07 NizzlesMyMac installd[191]: PackageKit: Extracting file://localhost/Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg (destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root/usr/local, uid=0)
Apr 13 08:27:22 NizzlesMyMac installd[191]: PackageKit: Executing script "./preflight" in /Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg/Contents/Resources
Apr 13 08:27:22 NizzlesMyMac installd[191]: PackageKit: Shoving /var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root (1 items) to /
Apr 13 08:27:24 NizzlesMyMac installd[191]: PackageKit: Executing script "./postflight" in /Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg/Contents/Resources
Apr 13 08:27:24 NizzlesMyMac installd[191]: ./postflight: chown: mysql: Invalid argument
Apr 13 08:27:25 NizzlesMyMac installd[191]: PackageKit: Install Failed: PKG: post-flight scripts for "com.mysql.mysql"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100407570 "An error occurred while running scripts from the package “mysql-5.5.11-osx10.6-x86_64.pkg”." {\n NSFilePath = "./postflight";\n NSLocalizedDescription = "An error occurred while running scripts from the package \U201cmysql-5.5.11-osx10.6-x86_64.pkg\U201d.";\n NSURL = "file://localhost/Volumes/mysql-5.5.11-osx10.6-x86_64/mysql-5.5.11-osx10.6-x86_64.pkg";\n PKInstallPackageIdentifier = "com.mysql.mysql";\n}
Apr 13 08:27:25 NizzlesMyMac Installer[181]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x117116b40 "An error occurred while running scripts from the package “mysql-5.5.11-osx10.6-x86_64.pkg”."
Apr 13 08:27:25 NizzlesMyMac Installer[181]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Apr 13 08:27:26 NizzlesMyMac Installer[181]: IFDInstallController 6F03890 state = 7
Apr 13 08:27:26 NizzlesMyMac Installer[181]: Displaying 'Install Failed' UI.
Apr 13 08:27:26 NizzlesMyMac Installer[181]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
对于漂亮的颜色,请参见此处:http://pastie.org/1791314