MySQL Source-Configuration Options This option was added in MySQL 8.0.22. Whether to build the test protocol trace client plugin (see Using the Test Protocol Trace Plugin). By default, this option is disabled. Enabling this option has no effect unless the WITH_CLIENT_PROTOCOL_TRACING  option is enabled. If MySQL is configured with both options enabled, the  libmysqlclient  client library is built with the test protocol trace plugin built in, and all the standard MySQL clients load the plugin. However, even when the test plugin is enabled, it has no effect by default. Control over the plugin is afforded using environment variables; see Using the Test Protocol Trace Plugin. Do  not  enable the  WITH_TEST_TRACE_PLUGIN  option if you want to use your own protocol trace plugins because only one such plugin can be loaded at a time and an error occurs for attempts to load a second one. If you have already built MySQL with the test protocol trace plugin enabled to see how it works, you must rebuild MySQL without it before you can use your own plugins. For information about writing trace plugins, see Writing Protocol Trace Plugins. Whether to enable the ThreadSanitizer, for compilers that support it. The default is off. Whether to enable the Undefined Behavior Sanitizer, for compilers that support it. The default is off. If enabled, compile MySQL with unit tests. The default is ON unless the server is not being compiled. Enables unixODBC support, for Connector/ODBC. Whether to compile in the Valgrind header files, which exposes the Valgrind API to MySQL code. The default is  OFF . To generate a Valgrind-aware debug build,  -DWITH_VALGRIND=1  normally is combined with  - DWITH_DEBUG=1 . See Building Debug Configurations. Some features require that the server be built with compression library support, such as the COMPRESS()  and  UNCOMPRESS()  functions, and compression of the client/server protocol. The WITH_ZLIB  indicates the source of  zlib  support: 242 • -DWITH_ZSTD= zstd_type • system : Use the system  zlib  library. If  WITH_ZLIB  is set to this value, the  zlib_decompress utility is not built. In this case, the system  openssl zlib  command can be used instead. • bundled : Use the  zlib  library bundled with the distribution. This is the default. • -DWITH_ZLIB= zlib_type • -DWITH_VALGRIND= bool • -DWITH_UNIXODBC= 1 • -DWITH_UNIT_TESTS={ON|OFF} • -DWITH_UBSAN= bool • -DWITH_TSAN= bool • -DWITH_TEST_TRACE_PLUGIN= bool Note