MySQL Server Version Reference  /  Build (Configuration) Options

Chapter 5 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.6, 5.7, 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 5.1 CMake Options

Name Introduced Removed 5.6 5.7 8.0
ADD_GDB_INDEX 8.0.18 Yes
BUILD_CONFIG Yes Yes Yes
BUNDLE_RUNTIME_LIBRARIES 8.0.11 Yes
CMAKE_BUILD_TYPE Yes Yes Yes
CMAKE_CXX_FLAGS Yes Yes Yes
CMAKE_C_FLAGS Yes Yes Yes
CMAKE_INSTALL_PREFIX Yes Yes Yes
CMAKE_INSTALL_PRIV_LIBDIR 8.0.18 Yes
COMPILATION_COMMENT Yes Yes Yes
COMPILATION_COMMENT_SERVER 8.0.14 Yes
COMPRESS_DEBUG_SECTIONS 8.0.22 Yes
CPACK_MONOLITHIC_INSTALL Yes Yes Yes
DEFAULT_CHARSET Yes Yes Yes
DEFAULT_COLLATION 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 8.0.18 Yes
DOWNLOAD_BOOST 5.7.5 Yes Yes
DOWNLOAD_BOOST_TIMEOUT 5.7.6 Yes Yes
ENABLED_LOCAL_INFILE Yes Yes Yes
ENABLED_PROFILING Yes Yes Yes
ENABLE_DEBUG_SYNC 5.6.36, 5.7.1, 8.0.1 Yes Yes Yes
ENABLE_DOWNLOADS 8.0.25 Yes Yes Yes
ENABLE_DTRACE 8.0.1 Yes Yes Yes
ENABLE_EXPERIMENTAL_SYSVARS 8.0.11 Yes
ENABLE_GCOV 5.6.3 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
FPROFILE_GENERATE 8.0.19 Yes
FPROFILE_USE 8.0.19 Yes
IGNORE_AIO_CHECK 5.6.1 Yes Yes Yes
INNODB_PAGE_ATOMIC_REF_COUNT 5.6.16, 5.7.4 5.7.5 Yes Yes
INSTALL_BINDIR Yes Yes Yes
INSTALL_DOCDIR Yes Yes Yes
INSTALL_DOCREADMEDIR Yes Yes Yes
INSTALL_INCLUDEDIR Yes Yes Yes
INSTALL_INFODIR Yes Yes Yes
INSTALL_LAYOUT Yes Yes Yes
INSTALL_LIBDIR Yes Yes Yes
INSTALL_MANDIR Yes Yes Yes
INSTALL_MYSQLKEYRINGDIR 5.7.11 Yes Yes
INSTALL_MYSQLSHAREDIR Yes Yes Yes
INSTALL_MYSQLTESTDIR Yes Yes Yes
INSTALL_PKGCONFIGDIR 5.7.9 Yes Yes
INSTALL_PLUGINDIR Yes Yes Yes
INSTALL_SBINDIR Yes Yes Yes
INSTALL_SCRIPTDIR Yes Yes
INSTALL_SECURE_FILE_PRIVDIR 5.6.34, 5.7.6 Yes Yes Yes
INSTALL_SECURE_FILE_PRIV_EMBEDDEDDIR 5.6.34, 5.7.8 Yes Yes
INSTALL_SHAREDIR Yes Yes Yes
INSTALL_SQLBENCHDIR 5.7.8 Yes Yes
INSTALL_STATIC_LIBRARIES Yes
INSTALL_SUPPORTFILESDIR 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 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 Yes Yes Yes
MYSQL_MAINTAINER_MODE Yes Yes Yes
MYSQL_PROJECT_NAME 5.6.5 Yes Yes Yes
MYSQL_TCP_PORT Yes Yes Yes
MYSQL_UNIX_ADDR Yes Yes Yes
NDB_UTILS_LINK_DYNAMIC 8.0.22-ndb-8.0.22 Yes
ODBC_INCLUDES Yes Yes Yes
ODBC_LIB_DIR Yes Yes Yes
OPTIMIZER_TRACE 5.6.3 Yes Yes Yes
REPRODUCIBLE_BUILD 5.6.37, 5.7.19, 8.0.11 Yes Yes Yes
SUNPRO_CXX_LIBRARY 5.6.20, 5.7.5 Yes Yes
SYSCONFDIR Yes Yes Yes
SYSTEMD_PID_DIR 5.7.6 Yes Yes
SYSTEMD_SERVICE_NAME 5.7.6 Yes Yes
TMPDIR 5.6.16, 5.7.4 Yes Yes Yes
USE_LD_GOLD Yes
USE_LD_LLD 8.0.16 Yes
WIN_DEBUG_NO_INLINE 5.7.6 Yes Yes
WITHOUT_xxx_STORAGE_ENGINE Yes Yes Yes
WITH_ANT 8.0.11 Yes
WITH_ASAN 5.6.15, 5.7.3 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 Yes
WITH_BUNDLED_MEMCACHED Yes
WITH_CLASSPATH Yes
WITH_CLIENT_PROTOCOL_TRACING 5.7.2 Yes Yes
WITH_CURL 5.7.19, 8.0.2 Yes Yes
WITH_DEBUG Yes Yes Yes
WITH_DEFAULT_COMPILER_OPTIONS 5.6.6 Yes Yes Yes
WITH_DEFAULT_FEATURE_SET 5.6.6 8.0.22 Yes Yes Yes
WITH_EDITLINE 5.6.12, 5.7.2 Yes Yes Yes
WITH_EMBEDDED_SERVER Yes Yes
WITH_EMBEDDED_SHARED_LIBRARY 5.6.17, 5.7.4 Yes Yes
WITH_ERROR_INSERT Yes
WITH_EXTRA_CHARSETS Yes Yes
WITH_GMOCK 8.0.25 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_LDAP 5.7.29 Yes
WITH_LIBEDIT 5.6.12 Yes
WITH_LIBEVENT 5.6.6 Yes Yes Yes
WITH_LIBWRAP 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
WITH_NDBCLUSTER_STORAGE_ENGINE Yes Yes
WITH_NDBMTD Yes
WITH_NDB_BINLOG Yes
WITH_NDB_DEBUG Yes
WITH_NDB_JAVA Yes
WITH_NDB_PORT Yes
WITH_NDB_TEST 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 8.0.18 Yes
WITH_READLINE 5.6.5 Yes
WITH_ROUTER 8.0.16 Yes
WITH_SASL 5.7.29 Yes
WITH_SSL Yes Yes Yes
WITH_SYMVER16 5.6.31 Yes
WITH_SYSTEMD 5.7.6 Yes Yes
WITH_SYSTEMD_DEBUG 8.0.22 Yes
WITH_SYSTEM_LIBS 8.0.11 Yes
WITH_TCMALLOC 8.0.22 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
WITH_UNIXODBC Yes Yes Yes
WITH_VALGRIND Yes Yes Yes
WITH_ZLIB Yes Yes Yes
WITH_ZSTD 8.0.18 Yes
WITH_xxx_STORAGE_ENGINE Yes Yes Yes


PREV   HOME   UP