FreeBSD6下手工编译MySQL5

根据 FreeBSD maillist、google 获知 libthr 这样1:1 的线程库比较适合 MySQL 运行。

编译参数
默认启用archive类型存储格式,启用支持大表,启用OpenSSL支持注1
默认使用thr线程库

# ./configure --prefix=/usr/local/mysql --without-debug --without-bench --enable-thread-safe-client --enable-assembler --with-extra-charsets=complex --with-named-thread-libs='-lthr' --with-archive-storage-engine --with-big-tables --with-openssl

# gmake all install-strip

性能调节: