MySQL 5.1 Reference Manual  /  ...  /  MySQL Layout for Source Installation

2.11.1 MySQL Layout for Source Installation

By default, when you install MySQL after compiling it from a source distribution, the installation step installs files under /usr/local. Components are installed in the directories shown in the following table. To configure particular installation locations, use the options described at Section 2.11.4, “MySQL Source-Configuration Options”.

Table 2.18 MySQL Layout for Installation from Source

DirectoryContents of Directory
binClient programs and scripts
include/mysqlInclude (header) files
DocsManual in Info format
manUnix manual pages
libexecThe mysqld server
share/mysqlMiscellaneous support files, including error messages, sample configuration files, SQL for database installation
varLog files, databases

Within its installation directory, the layout of a source installation differs from that of a binary installation in the following ways:

  • The mysqld server is installed in the libexec directory rather than in the bin directory.

  • The data directory is var rather than data.

  • mysql_install_db is installed in the bin directory rather than in the scripts directory.

  • The header file and library directories are include/mysql and lib/mysql rather than include and lib.

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