MySQL 8.4 Release Notes
2.8.3 用于源代码安装的 MySQL 布局
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”.