2 回答

TA貢獻(xiàn)1853條經(jīng)驗(yàn) 獲得超18個(gè)贊
下面是編譯MySQL的新老參數(shù)對照表:
參數(shù)值說明 配置選項(xiàng) CMake選項(xiàng)
TCP/IP端口 --with-tcp-port-=3306 -DMYSQL_TCP_PORT=3306
UNIX socket文件 --with-unix-socket-path=/tmp/mysqld.sock -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock
啟用加載本地?cái)?shù)據(jù) --enable-local-infile -DENABLED_LOCAL_INFILE=1
擴(kuò)展字符支持 --with-extra-charsets=all(默認(rèn):all) -DEXTRA_CHARSETS=all(默認(rèn):all)
默認(rèn)字符集 --with-charset=utf8 -DDEFAULT_CHARSET=utf8
默認(rèn)字符校對 --with-collation=utf8_general_ci -DDEFAULT_COLLATION=utf8_general_ci
Build the server --with-server 無
嵌入式服務(wù)器 --with-embedded-server -DWITH_EMBEDDED_SERVER=1
libmysqld權(quán)限控制 --with-embedded-privilege-control 無
安裝文檔 --without-docs 無
Big tables支持 --with-big-tables, --without-big-tables 無
mysqld運(yùn)行用戶 --with-mysqld-user=mysql -DMYSQL_USER=mysql
調(diào)試模式 --without-debug(默認(rèn)禁用) -DWITH_DEBUG=0(默認(rèn)禁用)
GIS支持 --with-geometry 無
社區(qū)功能 --enable-community-features 無
Profiling --disable-profiling(默認(rèn)啟用) -DENABLE_PROFILING=0(默認(rèn)啟用)
pstack --without-pstack 無(新版移除該功能)
匯編字符串函數(shù) --enable-assembler 無
構(gòu)建類型 --build=x86_64-pc-linux-gnu 沒有等效參數(shù)
交叉編譯主機(jī) --host=x86_64-pc-linux-gnu 沒有等效參數(shù)
客戶端標(biāo)志 --with-client-ldflags=-lstdc++ 無
線程安全標(biāo)志 --enable-thread-safe-client 無
注釋存儲類型 --with-comment='string' -DWITH_COMMENT='string'
Shared/static binaries --enable-shared --enable-static 無
內(nèi)存使用控制 --with-low-memory 無
添加回答
舉報(bào)