开发者

How do I install mysql on cygwin?

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

any tips?


Use apt-cyg, you just need the command:

apt-cyg install mysql

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


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


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


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.

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:

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

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

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜