- 与快速,互斥与(默认快速互斥编译被禁用)
–with-fast-mutexes Compile with fast mutexes (default is disabled)
–with-atomic-ops=rwlocks|smp|up
Implement atomic operations using pthread rwlocks or
atomic CPU instructions for multi-processor
(default) or uniprocessor configuration
选择静态编译
–with-mysqld-ldflags Extra linking arguments for mysqld
–with-client-ldflags Extra linking arguments for clients
–with-mysqld-libs Extra libraries to link with for mysqld
–with-lib-ccflags Extra CC options for libraries
–with-low-memory Try to use less memory to compile to avoid
memory limitations.
–with-comment Comment about compilation environment.
支持超大表
–with-big-tables Support tables with more than 4 G rows even on 32
bit platforms
–with-max-indexes=N Sets the maximum number of indexes per table,
default 64
–with-ssl=DIR Include SSL support
选择功能插件和引擎插件
–with-plugins=PLUGIN[[[,PLUGIN..]]]
Plugins to include in mysqld. (default is: none)
Must be a configuration name or a comma separated
list of plugins.
Available configurations are: none max max-no-ndb all
Available plugins are: partition daemon_example
ftexample archive blackhole csv example federated
heap ibmdb2i innobase innodb_plugin myisam myisammrg
ndbcluster.
–without-plugin-PLUGIN Disable the named plugin from being built.
Otherwise, for plugins which are not selected for
inclusion in mysqld will be built dynamically (if
supported)
–with-plugin-PLUGIN Forces the named plugin to be linked into mysqld
statically.
–with-ndb-sci=DIR Provide MySQL with a custom location of sci library.
Given DIR, sci library is assumed to be in $DIR/lib
and header files in $DIR/include.
–with-ndb-test Include the NDB Cluster ndbapi test programs
–with-ndb-docs Include the NDB Cluster ndbapi and mgmapi documentation
–with-ndb-port Port for NDB Cluster management server
–with-ndb-port-base Base port for NDB Cluster transporters
–without-ndb-debug Disable special ndb debug features
–with-ndb-ccflags=CFLAGS
Extra CFLAGS for ndb compile
–without-ndb-binlog Disable ndb binlog
仅安装客户端
–without-server Only build the client.
–with-embedded-server Build the embedded server (libmysqld).
–without-query-cache Do not build query cache.
–without-geometry Do not build geometry-related parts.
–with-embedded-privilege-control
Build parts to check user’s privileges.
Only affects embedded library.
–with-mysqlmanager Build the mysqlmanager binary: yes/no (default:
build if server is built.)
–without-docs Skip building of the documentation.
–without-man Skip building of the man pages.
–without-readline Use system readline instead of bundled copy.
–without-libedit Use system libedit instead of bundled copy.
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L
nonstandard directory
LIBS libraries to pass to the linker, e.g. -l
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I
you have headers in a nonstandard directory
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CPP C preprocessor
CXXCPP C++ preprocessor
CCAS assembler compiler command (defaults to CC)
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
Use these variables to override the choices made by `configure’ or to help
it to find libraries and programs with nonstandard names/locations.
请关注Supports build,有些插件是不支持静态编译的需要在性能和功能之间取舍
Description of plugins:
=== Partition Support ===
Plugin Name: partition
Description: MySQL Partitioning Support
Supports build: static
Configurations: max, max-no-ndb
=== Daemon Example Plugin ===
Plugin Name: daemon_example
Description: This is an example plugin daemon.
Supports build: dynamic
=== Simple Parser ===
Plugin Name: ftexample
Description: Simple full-text parser plugin
Supports build: dynamic
=== Archive Storage Engine ===
Plugin Name: archive
Description: Archive Storage Engine
Supports build: static and dynamic
Configurations: max, max-no-ndb
=== Blackhole Storage Engine ===
Plugin Name: blackhole
Description: Basic Write-only Read-never tables
Supports build: static and dynamic
Configurations: max, max-no-ndb
=== CSV Storage Engine ===
Plugin Name: csv
Description: Stores tables in text CSV format
Supports build: static
Status: mandatory 强制安装
=== Example Storage Engine ===
Plugin Name: example
Description: Example for Storage Engines for developers
Supports build: dynamic
Configurations: max, max-no-ndb
=== Federated Storage Engine ===
Plugin Name: federated
Description: Connects to tables on remote MySQL servers
Supports build: static and dynamic
Configurations: max, max-no-ndb
=== Memory Storage Engine ===
Plugin Name: heap
Description: Volatile memory based tables
Supports build: static
Status: mandatory
=== IBM DB2 for i Storage Engine ===
Plugin Name: ibmdb2i
Description: IBM DB2 for i Storage Engine
Supports build: dynamic
Configurations: max, max-no-ndb
=== InnoDB Storage Engine ===
Plugin Name: innobase
Description: Transactional Tables using InnoDB
Supports build: static and dynamic
Configurations: max, max-no-ndb
=== InnoDB Storage Engine ===
Plugin Name: innodb_plugin
Description: Transactional Tables using InnoDB
Supports build: dynamic
Configurations: max, max-no-ndb
=== MyISAM Storage Engine ===
Plugin Name: myisam
Description: Traditional non-transactional MySQL tables
Supports build: static
Status: mandatory
=== MyISAM MERGE Engine ===
Plugin Name: myisammrg
Description: Merge multiple MySQL tables into one
Supports build: static
Status: mandatory
=== Cluster Storage Engine ===
Plugin Name: ndbcluster
Description: High Availability Clustered tables
Supports build: static
Configurations: max
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26690043/viewspace-721570/ ,如需转载,请注明出处,否则将追究法律责任。