Documentation Home
MySQL Internals Manual


4.6.2 Installation Layout Options

These options control where to install various MySQL components.

In the following table, the CMAKE_INSTALL_PREFIX value is the installation base directory. Many other CMake layout options are interpreted relative to the prefix and their values are relative pathnames. Their values should not include the prefix.

Parameter

configure Option

CMake Option

Installation base directory

--prefix=/usr

-DCMAKE_INSTALL_PREFIX=/usr

mysqld directory

--libexecdir=/usr/sbin

-DINSTALL_SBINDIR=sbin (interpreted relative to prefix)

Data directory

--localstatedir=/var/lib/mysql

-DMYSQL_DATADIR=/var/lib/mysql

Config directory (for my.cnf)

--sysconfdir=/etc/mysql

-DSYSCONFDIR=/etc/mysql

Plugin directory

--with-plugindir=/usr/lib64/mysql/plugin

-DINSTALL_PLUGINDIR=lib64/mysql/plugin (interpreted relative to prefix)

Man page directory

--mandir=/usr/share/man

-DINSTALL_MANDIR=share/man (interpreted relative to prefix)

Shared-data directory

--sharedstatedir=/usr/share/mysql

-DINSTALL_SHAREDIR=share (this is where aclocal/mysql.m4 should be installed)

Library installation directory

--libdir=/usr/lib64/mysql

-DINSTALL_LIBDIR=lib64/mysql (interpreted relative to prefix)

Header installation directory

--includedir=/usr/include/mysql

-DINSTALL_INCLUDEDIR=include/mysql (interpreted relative to prefix)

Info doc directory

--infodir=/usr/share/info

-DINSTALL_INFODIR=share/info (interpreted relative to prefix)


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.