1.获得编译参数
cmake --help
configure --help
2.Cmake的部分参数及含义:
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql //安装目录
-DMYSQL_DATADIR=/usr/local/mysql/data //数据库存放目录
-DDEFAULT_CHARSET=latin1 //使用utf8字符
-DDEFAULT_COLLATION=utf8_general_ci //校验字符
-DEXTRA_CHARSETS=all //安装所有扩展字符集
-DENABLED_LOCAL_INFILE=1 //允许从本地导入数据
3.Configure的参数有:
“--prefix” 设定安装路径,默认为”/usr/local”
“--datadir” 设定Mysql数据文件存放路径
“--with-charset” 设定系统的默认字符集
“--with-collation” 设定默认的校验规则
“--with-extra-charsets” 除了默认字符集之外需要编译安装的字符集
“--with-unix-socket-path” 设定socket文件地址
“—with-tcp-port” 指定特定监听端口,默认为3306
“—with-mysqld-user” 指定运行mysql的OS用户,默认为mysql
“—without-query-cache” 禁用query cache 功能
“---without-innodb” 禁用innodb存储引擎
“—with-partition” 在5.1版本中开启partition支持特性
“—enable-thread-safe-client” 以线程方式编译客户端
“—with-pthread” 强制使用pthread线程库编译
“—with-named-thread-libs” 指定使用某个特定的线程库编译
“—without-debug” 使用非debug模式
“—with-mysqld-ldflags” mysqld的额外link参数
“—with-client-ldfalgs” client的额外link参数
cmake --help
configure --help
2.Cmake的部分参数及含义:
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql //安装目录
-DMYSQL_DATADIR=/usr/local/mysql/data //数据库存放目录
-DDEFAULT_CHARSET=latin1 //使用utf8字符
-DDEFAULT_COLLATION=utf8_general_ci //校验字符
-DEXTRA_CHARSETS=all //安装所有扩展字符集
-DENABLED_LOCAL_INFILE=1 //允许从本地导入数据
3.Configure的参数有:
“--prefix” 设定安装路径,默认为”/usr/local”
“--datadir” 设定Mysql数据文件存放路径
“--with-charset” 设定系统的默认字符集
“--with-collation” 设定默认的校验规则
“--with-extra-charsets” 除了默认字符集之外需要编译安装的字符集
“--with-unix-socket-path” 设定socket文件地址
“—with-tcp-port” 指定特定监听端口,默认为3306
“—with-mysqld-user” 指定运行mysql的OS用户,默认为mysql
“—without-query-cache” 禁用query cache 功能
“---without-innodb” 禁用innodb存储引擎
“—with-partition” 在5.1版本中开启partition支持特性
“—enable-thread-safe-client” 以线程方式编译客户端
“—with-pthread” 强制使用pthread线程库编译
“—with-named-thread-libs” 指定使用某个特定的线程库编译
“—without-debug” 使用非debug模式
“—with-mysqld-ldflags” mysqld的额外link参数
“—with-client-ldfalgs” client的额外link参数
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30126478/viewspace-1424186/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30126478/viewspace-1424186/