Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 0.8Mb


4.6.5 Miscellaneous Options

For Autotools MySQL build options that have CMake equivalents, the normal mapping from an Autotools option to the CMake option is to convert uppercase, remove leading dashes, replace dashes with underscores, and add a leading -D.

Examples:

--with-debug => -DWITH_DEBUG=1
--with-embedded-server => -DWITH_EMBEDDED_SERVER

Parameter

configure Option

CMake Option

TCP/IP port number

--with-tcp-port-=3306

-DMYSQL_TCP_PORT=3306

Unix socket file

--with-unix-socket-path=/tmp/mysqld.sock

-DMYSQL_UNIX_ADDR=/tmp/mysqld.sock

Enable LOCAL for LOAD DATA

--enable-local-infile

-DENABLED_LOCAL_INFILE=1

Extra charsets

--with-extra-charsets=all

-DWITH_EXTRA_CHARSETS=all (default is all)

Default charset

--with-charset=utf8

-DDEFAULT_CHARSET=utf8

Default collation

--with-collation=utf8_general_ci

-DDEFAULT_COLLATION=utf8_general_ci

Build the server

--with-server

none

Build the embedded server

--with-embedded-server

-DWITH_EMBEDDED_SERVER=1

libmysqld privilege control

--with-embedded-privilege-control

none

Install the documentation

--without-docs

none

Big tables

--with-big-tables, --without-big-tables

none (tables are big by default)

mysqld user

--with-mysqld-user=mysql

none

Debugging

--without-debug

-DWITH_DEBUG=0 (default is debugging disabled)

GIS support

--with-geometry

none (always enabled?)

Community features

--enable-community-features

none (always enabled)

Profiling

--disable-profiling

-DENABLED_PROFILING=0 (enabled by default)

pstack

--without-pstack

none (pstack is removed)

Assembler string functions

--enable-assembler

none

Build type

--build=x86_64-pc-linux-gnu

no equivalent (unneeded?)

Cross-compile host

--host=x86_64-pc-linux-gnu

no equivalent (unneeded?)

Client flag

--with-client-ldflags=-lstdc++

none (unneeded)

Client flag

--enable-thread-safe-client

none (unneeded, clients are always thread safe)

Comment

--with-comment="string"

-DCOMPILATION_COMMENT="string"

Shared/static binaries

--enable-shared, --enable-static

none (there is only DISABLE_SHARED)

Memory use

--with-low-memory

none (unneeded)


User Comments
Sign Up Login You must be logged in to post a comment.