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
[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
本文详细介绍了 MySQL 5.1 版本的编译配置过程及参数说明,重点解释了如何通过特定选项来启用 SSL 支持、指定 Unix Socket 路径等关键设置。
189

被折叠的 条评论
为什么被折叠?



