I'm trying to reinstall mysql on my computer (os x mavericks) and I've done the following with the following errors:
我正在尝试在我的计算机上重新安装mysql(os x mavericks)并且我已完成以下错误:
bash <(curl -Ls http://git.io/eUx7rg)
Error:
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/mysql/data/christians-mbp.saumag.edu.pid).
/usr/local/mysql/support-files/mysql.server: line 362: pidof: command not found
/dev/fd/63: line 119: SORRY, MySQL IS NOT RUNNING ... THERE MUST BE A PROBLEM: command not found
So I decided to see uninstall it if it was already there:
所以我决定看看卸载它,如果它已经存在:
brew uninstall mysql
bash <(curl -Ls http://git.io/eUx7rg)
This says that mysql is currently still installed, so I did the following:
这说明mysql目前仍在安装,所以我做了以下事情:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
bash<(curl -Ls http://git.io/eUx7rg)
This gave me the same error messages as before, So I decided to redo all the rm commands above, including the edit and run the following commands:
这给了我与以前相同的错误消息,所以我决定重做上面的所有rm命令,包括编辑并运行以下命令:
ps -ax | grep mysql
brew cleanup
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /Library/StartupItems/MySQLCOM
brew doctor
brew update
brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`yyttr3` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
After the last command I got the following error message:
在最后一个命令后,我收到以下错误消息:
dyld: Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/mysql/bin/my_print_defaults
Reason: image not found
FATAL ERROR: Neither host 'christians-mbp.saumag.edu' nor 'localhost' could be looked up with
/usr/local/opt/mysql/bin/resolveip
Please configure the 'hostname' command to return a correct
hostname. If you want to solve this at a later stage, restart this script with the --force option
主机名。如果要在稍后阶段解决此问题,请使用--force选项重新启动此脚本
I don't really know what the problem is, i'm not sure if i'm even installing it right. From what I have read this should be a good way to install mysql. If you have any ideas on what I would greatly appreciate it.
我真的不知道问题是什么,我不确定我是否正确安装它。从我读到的这应该是一个安装mysql的好方法。如果你有什么想法我会非常感激。
3 个解决方案
#1
8
I'm sure you've solved this by now, but I just had the same problem. For anyone else who stumbles across this:
我相信你现在已经解决了这个问题,但我遇到了同样的问题。对于其他任何偶然发现的人:
For me, it was an issue with OpenSSL.
对我来说,这是OpenSSL的一个问题。
resolveip `hostname`
If it says OpenSSL isn't loaded,
如果它说没有加载OpenSSL,
brew uninstall openssl
brew install openssl
then try again. Hope this helps.
然后再试一次。希望这可以帮助。
#2
0
I had the same problem. Only solution that I found is to install mysql from source code. The reason for this error to occur and how to solve it is explained in full detail in the following link: http://jaitechwriteups.blogspot.com.au/2010/08/mysql-installation-error-neither-host.html
我有同样的问题。我找到的唯一解决方案是从源代码安装mysql。发生此错误的原因以及如何解决此问题将在以下链接中详细说明:http://jaitechwriteups.blogspot.com.au/2010/08/mysql-installation-error-neither-host.html
#3
0
All I had to do was agree XCODE terms by opening XCODE. That fixed everything.
我所要做的只是通过打开XCODE来同意XCODE术语。这解决了一切。
#1
8
I'm sure you've solved this by now, but I just had the same problem. For anyone else who stumbles across this:
我相信你现在已经解决了这个问题,但我遇到了同样的问题。对于其他任何偶然发现的人:
For me, it was an issue with OpenSSL.
对我来说,这是OpenSSL的一个问题。
resolveip `hostname`
If it says OpenSSL isn't loaded,
如果它说没有加载OpenSSL,
brew uninstall openssl
brew install openssl
then try again. Hope this helps.
然后再试一次。希望这可以帮助。
#2
0
I had the same problem. Only solution that I found is to install mysql from source code. The reason for this error to occur and how to solve it is explained in full detail in the following link: http://jaitechwriteups.blogspot.com.au/2010/08/mysql-installation-error-neither-host.html
我有同样的问题。我找到的唯一解决方案是从源代码安装mysql。发生此错误的原因以及如何解决此问题将在以下链接中详细说明:http://jaitechwriteups.blogspot.com.au/2010/08/mysql-installation-error-neither-host.html
#3
0
All I had to do was agree XCODE terms by opening XCODE. That fixed everything.
我所要做的只是通过打开XCODE来同意XCODE术语。这解决了一切。