Thursday, March 19, 2009

MySQL 5.1 在 FREEBSD 7.1 ports 的編譯參數

MySQL 5.1 在 FREEBSD 7.1 ports 的編譯參數
Posted on 三月 7th, 2009 ilay No comments
WITH_CHARSET=charset Define the primary built-in charset (latin1).

WITH_XCHARSET=list Define other built-in charsets (may be ‘all’).

WITH_COLLATION=collate Define default collation (latin1_swedish_ci).

WITH_OPENSSL=yes Enable secure connections.

WITH_LINUXTHREADS=yes Use the linuxthreads pthread library.

WITH_PROC_SCOPE_PTH=yes Use process scope threads (try it if you use libpthread).

WITH_FAST_MUTEXES=yes Replace mutexes with spinlocks.

BUILD_OPTIMIZED=yes Enable compiler optimizations (use it if you need speed).

BUILD_STATIC=yes Build a static version of mysqld. (use it if you need even more speed).

WITH_NDB=yes Enable support for NDB Cluster.



從5.1開始,加上 Linuxthread會發生錯誤。

可以改用 libthr加上配合kernel打開SCHED_ULE/PREEMPTION。

No comments: