首页
学习
活动
专区
圈层
工具
发布

安装MySQL
EN

Stack Overflow用户
提问于 2014-05-24 08:53:25
回答 1查看 284关注 0票数 1

我从这里下载了这里。现在我有了一个装满了MySQL相关文件的文件夹。问题是,我不知道该如何安装MySQL。我尝试执行mysql_install_db,但结果是:

代码语言:javascript
复制
Last login: Sat May 24 10:45:08 on ttys000
host237-40-dynamic:~ michelegorini$ /Users/michelegorini/Downloads/mysql-5.6.17-osx10.7-x86/scripts/mysql_install_db ; exit;
FATAL ERROR: Could not find ./bin/my_print_defaults

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

logout

[Process completed]

那我现在该怎么办?

更新:考虑到答案,我尝试了一些方法,结果如下:

代码语言:javascript
复制
Last login: Sat May 24 10:45:08 on ttys000
host237-40-dynamic:Hakka_ michelegorini$ $ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
curl: (22) The requested URL returned error: 400
-bash: $: command not found
host237-40-dynamic:Hakka_ michelegorini$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" && brew install git &&
> brew update
curl: (22) The requested URL returned error: 400
-bash: brew: command not found
host237-40-dynamic:Hakka_ michelegorini$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" && brew install git && brew update && brew install mysql
curl: (22) The requested URL returned error: 400
-bash: brew: command not found
host237-40-dynamic:Hakka_ michelegorini$ 

现在怎么办?

EN

回答 1

Stack Overflow用户

发布于 2014-05-24 08:57:49

自制的软件包管理器消除了在您的计算机上安装软件包的痛苦。

下面是如何在mac上安装mysql

命令在一行中:

代码语言:javascript
复制
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" && brew install git && brew update && brew install mysql
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23843112

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档