如何在 cygwin 上安装 mysql?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4806846/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 18:31:07  来源:igfitidea点击:

How do I install mysql on cygwin?

mysqlcygwin

提问by AriehGlazer

I've been trying to install mysql on my cygwin. There isn't a package for this on the repo, so I figured I'll compile one, but I can't figure out what package I need to use, nor which options should I send to ./configure

我一直在尝试在我的 cygwin 上安装 mysql。repo 上没有这个包,所以我想我会编译一个,但我不知道我需要使用什么包,也不知道我应该发送哪些选项到 ./configure

any tips?

有小费吗?

采纳答案by ak2

The Cygwin Ports project has mysql packages. See http://sourceware.org/cygwinports.

Cygwin Ports 项目有 mysql 包。请参阅http://sourceware.org/cygwinports

回答by Emerson

Use apt-cyg, you just need the command:

使用 apt-cyg,你只需要命令:

apt-cyg install mysql

http://code.google.com/p/apt-cyg/

http://code.google.com/p/apt-cyg/

回答by wajiw

Doesn't matter much which version you need to use. Just download the generic linux source from here. Edit:URL is out of date. Download generic linux source here.

您需要使用哪个版本并不重要。只需从这里下载通用 linux 源代码。 编辑:网址已过期。 在此处下载通用 linux 源代码

I know there used to be a readline bug in cygwin but you should be able to get past that with this in your configure:

我知道在 cygwin 中曾经有一个 readline 错误,但你应该能够在你的配置中解决这个问题:

./configure --without-readline CFLAGS=-O2

Might be worth it to try without the flags first, just make sure you run make distcleanif you try multiple configures.

可能值得先在没有标志的情况下尝试,make distclean如果您尝试多个配置,请确保您运行。

Otherwise here's are the commands to get you going:

否则,这是让您继续前进的命令:

tar xzvf mysql-5.5.8.tar.gz
cd mysql-5.0.57
./configure
make
make install

You should be good to go from there.

你应该很高兴从那里出发。

回答by winterli

Fistly ,try to download https://github.com/transcode-open/apt-cyg,and then execute the following command 'apt-cyg install mysql' . It's worked!

首先尝试下载https://github.com/transcode-open/apt-cyg,然后执行下面的命令 'apt-cyg install mysql' 。成功了!