麻烦重新安装mysql在OSX小牛 [英] Trouble reinstalling mysql on OSX Mavericks

查看:511
本文介绍了麻烦重新安装mysql在OSX小牛的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的计算机(os x小牛)上重新安装mysql,我做了以下错误:

  bash<(curl -Ls http://git.io/eUx7rg)

错误:

 启动MySQL 
...错误!服务器退出而不更新PID文件(/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 ...必须是一个问题:命令未找到

所以我决定看看卸载它,如果它已经在那里:

  brew卸载mysql 
bash<(curl -Ls http://git.io/eUx7rg)

这说明mysql目前仍然安装,所以我做了以下操作:

  sudo rm / usr / local / mysql 
sudo rm -rf / usr / local / mysql *
sudo rm -rf / Library / StartupItems / MySQLCOM
sudo rm -rf / Library / PreferencePanes / My *
编辑/ etc / hostconfig并删除行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)

这给了我以前的错误信息,所以我决定重做所有的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

错误讯息:

  dyld:未加载库:@@ HOMEBREW_PREFIX @@ / opt / openssl / lib / libssl.1.0.0 .dylib 
引用自:/ usr / local / opt / mysql / bin / my_print_defaults
原因:找不到图片
致命错误:主机'christians-mbp.saumag.edu' localhost'可以用
/ usr / local / opt / mysql / bin / resolveip
查找。请配置'hostname'命令返回正确的
/ pre>

主机名。
如果你想在以后的阶段解决这个问题,请用--force选项重新启动这个脚本



我真的不知道什么问题是,我不知道如果我甚至安装它是正确的。从我已经阅读这应该是一个很好的安装mysql的方法。

解决方案

我相信你现在已经解决了这个问题,但我只是有同样的问题。对于任何绊倒这个的人:



对我来说,这是OpenSSL的一个问题。

  resolveip`hostname` 

如果说OpenSSL没有加载, / p>

  brew卸载openssl 
brew install openssl

,然后重试。希望这有帮助。


I'm trying to reinstall mysql on my computer (os x mavericks) and I've done the following with the following errors:

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:

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:

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

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.

解决方案

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.

resolveip `hostname`

If it says OpenSSL isn't loaded,

brew uninstall openssl
brew install openssl

then try again. Hope this helps.

这篇关于麻烦重新安装mysql在OSX小牛的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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