编译mysql 5.1.39

5.1与5.0的编译有所不同,主要是插件上的配置不同。

[quote]
./configure --disable-shared --with-server-suffix=-community --without-embedded-server --with-plugins=max --with-zlib-dir=bundled --with-big-tables --enable-assembler --enable-local-infile --with-mysqld-user=mysql --with-pic --prefix=/usr/local/mysql51 --sysconfdir=/usr/local/mysql51 --with-unix-socket-path=/usr/local/mysql51/mysql51.sock --with-extra-charsets=all --with-ssl --enable-thread-safe-client --with-comment="MySQL Community Edition (GPL)" --with-readline CC=gcc CXX=gcc LDFLAGS=
[/quote]

--with-plugins=max

这个就是编译所有插件,就是所有的引擎

--with-ssl

这个是带ssl

--sysconfdir=/usr/local/mysql51 --with-unix-socket-path=/usr/local/mysql51/mysql51.sock

这两个要指定一下,否则会默认 /etc 和/tmp
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值