MySQL Source-Configuration Options You can select a predefined layout but modify individual component installation locations by specifying other options. For example: The  INSTALL_LAYOUT  value determines the default value of the  secure_file_priv , keyring_encrypted_file_data , and  keyring_file_data  system variables. See the descriptions of those variables in Section 5.1.8, “Server System Variables” , and Section 6.4.4.18, “Keyring System Variables” . Where to install manual pages. Where to install library files. The default directory to use as the location of the  keyring_file  plugin data file. The default value is platform specific and depends on the value of the  INSTALL_LAYOUT CMake  option; see the description of the  keyring_file_data  system variable in Section 5.1.8, “Server System Variables” . Where to install shared data files. Where to install the  mysql-test  directory. To suppress installation of this directory, explicitly set the option to the empty value ( -DINSTALL_MYSQLTESTDIR= ). The directory in which to install the  mysqlclient.pc  file for use by  pkg-config . The default value is  INSTALL_LIBDIR/pkgconfig , unless  INSTALL_LIBDIR  ends with  /mysql , in which case that is removed first. The location of the plugin directory. This value can be set at server startup with the  --plugin_dir  option. 226 • -DINSTALL_PLUGINDIR= dir_name • -DINSTALL_PKGCONFIGDIR= dir_name • -DINSTALL_MYSQLTESTDIR= dir_name • -DINSTALL_MYSQLSHAREDIR= dir_name • -DINSTALL_MYSQLKEYRINGDIR= dir_path • -DINSTALL_MANDIR= dir_name • -DINSTALL_LIBDIR= dir_name • DEB : DEB package layout (experimental). • SVR4 : Solaris package layout. • RPM : Layout similar to RPM packages. • STANDALONE : Same layout as used for  .tar.gz  and  .zip  packages. This is the default. cmake . -DINSTALL_LAYOUT=SVR4 -DMYSQL_DATADIR=/var/mysql/data