MySQL Server Version Reference  /  Build (Configuration) Options

Chapter 4 Build (Configuration) Options

The following table details the CMake configuration options available when building MySQL Server from source. The table contains these columns:

  • Name: The configuration option name.

  • Introduced: The version in which the option was introduced.

  • Removed: The version in which the option was removed.

  • 5.5, 5.6, and so forth: Whether the option is available in each MySQL Server series. If more information is available in the main reference manual, the indication is a link to the correct part of the manual.

Table 4.1 CMake Options

Name Introduced Removed 5.5 5.6 5.7 8.0
BUILD_CONFIG 5.5.7 Yes Yes Yes Yes
BUNDLE_RUNTIME_LIBRARIES 8.0.11 Yes
CMAKE_BUILD_TYPE 5.5.7 Yes Yes Yes Yes
CMAKE_CXX_FLAGS Yes Yes Yes Yes
CMAKE_C_FLAGS Yes Yes Yes Yes
CMAKE_INSTALL_PREFIX 5.5.8 Yes Yes Yes Yes
COMPILATION_COMMENT 5.5.7 Yes Yes Yes Yes
COMPILATION_COMMENT_SERVER 8.0.14 Yes
CPACK_MONOLITHIC_INSTALL 5.5.7 Yes Yes Yes Yes
DEFAULT_CHARSET 5.5.7 Yes Yes Yes Yes
DEFAULT_COLLATION 5.5.7 Yes Yes Yes Yes
DISABLE_DATA_LOCK Yes
DISABLE_PSI_COND 5.7.3 Yes Yes
DISABLE_PSI_ERROR Yes
DISABLE_PSI_FILE 5.7.3 Yes Yes
DISABLE_PSI_IDLE 5.7.3 Yes Yes
DISABLE_PSI_MEMORY 5.7.3 Yes Yes
DISABLE_PSI_METADATA 5.7.3 Yes Yes
DISABLE_PSI_MUTEX 5.7.3 Yes Yes
DISABLE_PSI_PS 5.7.3 Yes Yes
DISABLE_PSI_RWLOCK 5.7.3 Yes Yes
DISABLE_PSI_SOCKET 5.7.3 Yes Yes
DISABLE_PSI_SP 5.7.3 Yes Yes
DISABLE_PSI_STAGE 5.7.3 Yes Yes
DISABLE_PSI_STATEMENT 5.7.3 Yes Yes
DISABLE_PSI_STATEMENT_DIGEST 5.7.3 Yes Yes
DISABLE_PSI_TABLE 5.7.3 Yes Yes
DISABLE_PSI_THREAD 5.7.3 Yes Yes
DISABLE_PSI_TRANSACTION 5.7.3 Yes Yes
DISABLE_SHARED Yes
DOWNLOAD_BOOST 5.7.5 Yes Yes
DOWNLOAD_BOOST_TIMEOUT 5.7.6 Yes Yes
ENABLED_LOCAL_INFILE 5.5.7 Yes Yes Yes Yes
ENABLED_PROFILING 5.5.7 Yes Yes Yes Yes
ENABLE_DEBUG_SYNC 5.5.7 5.5.55, 5.6.36, 5.7.1, 8.0.1 Yes Yes Yes Yes
ENABLE_DOWNLOADS 5.5.7 Yes Yes Yes Yes
ENABLE_DTRACE 5.5.7 8.0.1 Yes Yes Yes Yes
ENABLE_EXPERIMENTAL_SYSVARS 8.0.11 Yes
ENABLE_GCOV 5.5.14, 5.6.3 Yes Yes Yes Yes
ENABLE_GPROF 5.6.6 Yes Yes Yes
FORCE_INSOURCE_BUILD 8.0.14 Yes
FORCE_UNSUPPORTED_COMPILER 5.7.5 Yes Yes
IGNORE_AIO_CHECK 5.5.9, 5.6.1 Yes Yes Yes Yes
INNODB_PAGE_ATOMIC_REF_COUNT 5.6.16, 5.7.4 5.7.5 Yes Yes
INSTALL_BINDIR 5.5.7 Yes Yes Yes Yes
INSTALL_DOCDIR 5.5.7 Yes Yes Yes Yes
INSTALL_DOCREADMEDIR 5.5.7 Yes Yes Yes Yes
INSTALL_INCLUDEDIR 5.5.7 Yes Yes Yes Yes
INSTALL_INFODIR 5.5.7 Yes Yes Yes Yes
INSTALL_LAYOUT 5.5.7 Yes Yes Yes Yes
INSTALL_LIBDIR 5.5.7 Yes Yes Yes Yes
INSTALL_MANDIR 5.5.7 Yes Yes Yes Yes
INSTALL_MYSQLKEYRINGDIR 5.7.11 Yes Yes
INSTALL_MYSQLSHAREDIR 5.5.7 Yes Yes Yes Yes
INSTALL_MYSQLTESTDIR 5.5.7 Yes Yes Yes Yes
INSTALL_PKGCONFIGDIR 5.7.9 Yes Yes
INSTALL_PLUGINDIR 5.5.7 Yes Yes Yes Yes
INSTALL_SBINDIR 5.5.7 Yes Yes Yes Yes
INSTALL_SCRIPTDIR 5.5.7 8.0.0 Yes Yes Yes
INSTALL_SECURE_FILE_PRIVDIR 5.5.53, 5.6.34, 5.7.6 Yes Yes Yes Yes
INSTALL_SECURE_FILE_PRIV_EMBEDDEDDIR 5.5.53, 5.6.34, 5.7.8 Yes Yes Yes
INSTALL_SHAREDIR 5.5.7 Yes Yes Yes Yes
INSTALL_SQLBENCHDIR 5.5.7 5.7.8 Yes Yes Yes
INSTALL_STATIC_LIBRARIES Yes
INSTALL_SUPPORTFILESDIR 5.5.7 Yes Yes Yes Yes
LINK_RANDOMIZE 8.0.1 Yes
LINK_RANDOMIZE_SEED 8.0.1 Yes
MAX_INDEXES 5.7.1 Yes Yes
MEMCACHED_HOME 5.5.16-ndb-7.2.2 Yes Yes
MUTEX_TYPE 5.7.2 Yes Yes
MYSQLX_TCP_PORT 5.7.17 Yes Yes
MYSQLX_UNIX_ADDR 5.7.15 Yes Yes
MYSQL_DATADIR 5.5.7 Yes Yes Yes Yes
MYSQL_MAINTAINER_MODE 5.5.7 Yes Yes Yes Yes
MYSQL_PROJECT_NAME 5.5.21, 5.6.5 Yes Yes Yes Yes
MYSQL_TCP_PORT 5.5.7 Yes Yes Yes Yes
MYSQL_UNIX_ADDR 5.5.7 Yes Yes Yes Yes
ODBC_INCLUDES Yes Yes Yes Yes
ODBC_LIB_DIR Yes Yes Yes Yes
OPTIMIZER_TRACE 5.6.3 Yes Yes Yes
REPRODUCIBLE_BUILD 5.5.57, 5.6.37, 5.7.19, 8.0.11 Yes Yes Yes Yes
SUNPRO_CXX_LIBRARY 5.6.20, 5.7.5 8.0.0 Yes Yes
SYSCONFDIR 5.5.7 Yes Yes Yes Yes
SYSTEMD_PID_DIR 5.7.6 Yes Yes
SYSTEMD_SERVICE_NAME 5.7.6 Yes Yes
TMPDIR 5.5.36, 5.6.16, 5.7.4 Yes Yes Yes Yes
USE_LD_GOLD 8.0.0 Yes
USE_LD_LLD 8.0.16 Yes
WIN_DEBUG_NO_INLINE 5.7.6 Yes Yes
WITHOUT_xxx_STORAGE_ENGINE 5.5.7 Yes Yes Yes Yes
WITH_ANT 8.0.11 Yes
WITH_ASAN 5.5.35, 5.6.15, 5.7.3 Yes Yes Yes Yes
WITH_ASAN_SCOPE 5.7.21, 8.0.4 Yes Yes
WITH_AUTHENTICATION_LDAP 5.7.19, 8.0.2 Yes Yes
WITH_AUTHENTICATION_PAM Yes Yes
WITH_AWS_SDK 5.7.19, 8.0.2 Yes Yes
WITH_BOOST 5.7.5 Yes Yes
WITH_BUNDLED_LIBEVENT 5.5.16-ndb-7.2.2 Yes Yes
WITH_BUNDLED_MEMCACHED 5.5.16-ndb-7.2.2 Yes Yes
WITH_CLASSPATH Yes Yes
WITH_CLIENT_PROTOCOL_TRACING 5.7.2 Yes Yes
WITH_CURL 5.7.19, 8.0.2 Yes Yes
WITH_DEBUG 5.5.7 Yes Yes Yes Yes
WITH_DEFAULT_COMPILER_OPTIONS 5.6.6 Yes Yes Yes
WITH_DEFAULT_FEATURE_SET 5.6.6 Yes Yes Yes
WITH_EDITLINE 5.6.12, 5.7.2 Yes Yes Yes
WITH_EMBEDDED_SERVER 5.5.7 Yes Yes Yes
WITH_EMBEDDED_SHARED_LIBRARY 5.5.37, 5.6.17, 5.7.4 Yes Yes Yes
WITH_ERROR_INSERT Yes Yes
WITH_EXTRA_CHARSETS 5.5.7 8.0.0 Yes Yes Yes
WITH_GMOCK Yes Yes Yes
WITH_ICU 8.0.4 Yes
WITH_INNODB_EXTRA_DEBUG 5.7.2 Yes Yes
WITH_INNODB_MEMCACHED Yes Yes Yes
WITH_JEMALLOC 8.0.16 Yes
WITH_KEYRING_TEST 5.7.11 Yes Yes
WITH_LIBEDIT 5.5.7 5.6.12 Yes Yes
WITH_LIBEVENT 5.6.6 Yes Yes Yes
WITH_LIBWRAP 5.5.7 Yes Yes Yes Yes
WITH_LOCK_ORDER 8.0.17 Yes
WITH_LSAN 8.0.16 Yes
WITH_LTO 8.0.13 Yes
WITH_LZ4 5.7.14 Yes Yes
WITH_LZMA 8.0.4 8.0.16 Yes
WITH_MECAB 5.7.6 Yes Yes
WITH_MSAN 5.7.4 Yes Yes
WITH_MSCRT_DEBUG 5.7.6 Yes Yes
WITH_MYSQLX 8.0.11 Yes
WITH_NDBCLUSTER Yes Yes Yes
WITH_NDBCLUSTER_STORAGE_ENGINE Yes Yes Yes
WITH_NDBMTD Yes Yes
WITH_NDB_BINLOG Yes Yes
WITH_NDB_DEBUG Yes Yes
WITH_NDB_JAVA 5.5.27-ndb-7.2.9 Yes Yes
WITH_NDB_PORT Yes Yes
WITH_NDB_TEST Yes Yes Yes
WITH_NUMA 5.6.27, 5.7.17 Yes Yes Yes
WITH_PROTOBUF 5.7.12 Yes Yes
WITH_RAPID 5.7.12 Yes Yes
WITH_RAPIDJSON 8.0.13 Yes
WITH_RE2 8.0.4 Yes
WITH_READLINE 5.5.7 5.6.5 Yes Yes
WITH_ROUTER 8.0.16 Yes
WITH_SSL 5.5.7 Yes Yes Yes Yes
WITH_SYMVER16 5.6.31 Yes
WITH_SYSTEMD 5.7.6 Yes Yes
WITH_SYSTEM_LIBS 8.0.11 Yes
WITH_TEST_TRACE_PLUGIN 5.7.2 Yes Yes
WITH_TSAN Yes
WITH_UBSAN 5.7.6 Yes Yes
WITH_UNIT_TESTS Yes Yes Yes Yes
WITH_UNIXODBC Yes Yes Yes Yes
WITH_VALGRIND 5.5.6 Yes Yes Yes Yes
WITH_ZLIB 5.5.7 Yes Yes Yes Yes
WITH_xxx_STORAGE_ENGINE 5.5.7 Yes Yes Yes Yes


PREV   HOME   UP