-dcmake_install_prefix=/usr/local/mysql \ # Specify the installation directory
-dmysql_datadir=/data/mysql \ # Specifying data storage directory
-dmysql_unix_addr=/usr/local/mysql/tmp/mysql.sock \ # Specifying the socket path
-ddefault_charset=utf8 \ # Specifies the default character set
-ddefault_collation=utf8_general_ci \ # Specifies the default proofing rules
-dextra_charsets=gbk,gb2312,utf8,ascii \ # support for additional character sets
-denabled_local_infile=on \ # Open Local_infile feature
-dwith_innobase_storage_engine=1 \ # supports innobase storage engine
-dwith_federated_storage_engine=1 \ # supports federated storage Engine
-dwith_blackhole_storage_engine=1 \ # supports blackhole storage engine
-dwithout_example_storage_engine=1 \ # supports EXAMPLE storage engine
-dwithout_partition_storage_engine=1 \ # supports PARTITION storage engine
-dwith_fast_mutexes=1 \
-dwith_zlib=bundled \
-denabled_local_infile=1 \
-dwith_readline=1 \
-dwith_embedded_server=1 \
-dwith_debug=0
MySQL Compilation parameters detailed