默认情况下,当您从源代码编译 MySQL 后安装 MySQL 时,安装步骤会将文件安装在/usr/local/mysql下。安装目录下的组件位置与二进制发行版相同。请参阅表 2.3,“通用 Unix/Linux 二进制包的 MySQL 安装布局” 和 Microsoft Windows 上的 MySQL 安装布局。要配置与默认位置不同的安装位置,请使用第 2.8.7 节“MySQL Source-Configuration Options”中描述的选项。By default, when you install MySQL after compiling it from source,
the installation step installs files under
/usr/local/mysql. The component locations
under the installation directory are the same as for binary
distributions. See Table 2.3, “MySQL Installation Layout for Generic Unix/Linux Binary Package”,
and MySQL Installation Layout on Microsoft Windows. To configure
installation locations different from the defaults, use the
options described at
Section 2.8.7, “MySQL Source-Configuration Options”.