gpt4 book ai didi

mysql - 正在安装 MySQL

转载 作者:行者123 更新时间:2023-11-29 06:37:05 24 4
gpt4 key购买 nike

我已经从 here 下载了 mysql-5.6.17-osx10.7-x86.tar.gz .现在我有了一个装满 MySQL 相关文件的文件夹。麻烦的是,我不知道如何安装 MySQL。我尝试执行 mysql_install_db,但结果是:

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]

那我现在该怎么办?

更新:考虑到答案,我尝试了一些东西,结果是:

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$

现在怎么办?

最佳答案

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

Here's how to install mysql on a mac

一行命令:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" && brew install git && brew update && brew install mysql

关于mysql - 正在安装 MySQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23843112/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com