8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 2 安装 MySQL / 2.1 一般安装指南 / 2.1.2 安装哪个 MySQL 版本和发行版
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

2.1.2 要安装的 MySQL 版本和发行版2.1.2 Which MySQL Version and Distribution to Install

准备安装 MySQL 时,决定要使用哪个版本和发行版格式(二进制或源代码)。When preparing to install MySQL, decide which version and distribution format (binary or source) to use.

首先,决定是否从安装LTS 系列(例如 MySQL 8.4),或从 创新系列(例如 MySQL 9.6)安装。这两个轨道都包含错误修复,而创新版本则包含最新的新功能和更改。有关更多详细信息,请参阅第 1.3 节“MySQL 版本:创新和 LTS”。First, decide whether to install from an LTS series like MySQL 8.4, or install from an Innovation series like MySQL 9.6. Both tracks include bug fixes while innovation releases includes the latest new features and changes. For additional details, see Section 1.3, “MySQL Releases: Innovation and LTS”.

MySQL 8.4 中的命名方案使用由三个数字和一个可选后缀组成的版本名称(例如,mysql-8.4.0)。版本名称中的数字解释如下:The naming scheme in MySQL 8.4 uses release names that consist of three numbers and an optional suffix (for example, mysql-8.4.0). The numbers within the release name are interpreted as follows:

  • 第一个数字 (8) 是主版本号。The first number (8) is the major version number.

  • 第二个数字 (4) 是次要版本号。 LTS 系列 的次版本号不会更改,但创新系列 的次版本号会更改。The second number (4) is the minor version number. The minor version number does not change for an LTS series, but it does change for an Innovation series.

  • 第三个数字 (0) 是 LTS 系列中的版本号。对于每个新的 LTS 版本,该值都会递增,但对于创新版本,该值可能始终为 0。The third number (0) is the version number within an LTS series. This is incremented for each new LTS release, but is likely always 0 for innovation releases.

选择要安装的 MySQL 版本后,决定要为您的操作系统安装哪种分发格式。对于大多数用例,二进制发行版是正确的选择。二进制发行版以本机格式适用于许多平台,例如适用于 Linux 的 RPM 软件包或适用于 macOS 的 DMG 软件包。发行版还提供更通用的格式,例如 Zip 存档或压缩的 tar 文件。在 Windows 上,您可以使用 MSI 来安装二进制发行版。After choosing which MySQL version to install, decide which distribution format to install for your operating system. For most use cases, a binary distribution is the right choice. Binary distributions are available in native format for many platforms, such as RPM packages for Linux or DMG packages for macOS. Distributions are also available in more generic formats such as Zip archives or compressed tar files. On Windows, you might use an MSI to install a binary distribution.

在某些情况下,最好从源发行版安装 MySQL:Under some circumstances, it may be preferable to install MySQL from a source distribution:

  • 您希望将 MySQL 安装在某个明确的位置。标准二进制发行版已准备好在任何安装位置运行,但您可能需要更大的灵活性来将 MySQL 组件放置在您想要的位置。You want to install MySQL at some explicit location. The standard binary distributions are ready to run at any installation location, but you might require even more flexibility to place MySQL components where you want.

  • 您想要配置 mysqld,其功能可能不包含在标准二进制发行版中。以下是用于确保功能可用性的最常见额外选项的列表:You want to configure mysqld with features that might not be included in the standard binary distributions. Here is a list of the most common extra options used to ensure feature availability:

    有关其他信息,请参阅 第 2.8.7 节,“MySQL 源配置选项”。For additional information, see Section 2.8.7, “MySQL Source-Configuration Options”.

  • 您想要配置 mysqld,但不包含标准中包含的某些功能二进制发行版。You want to configure mysqld without some features that are included in the standard binary distributions.

  • 您想要读取或修改组成 MySQL 的 C 和 C++ 代码。为此,请获取源代码分发版。You want to read or modify the C and C++ code that makes up MySQL. For this purpose, obtain a source distribution.

  • 源代码分发版包含比二进制分发版更多的测试和示例。Source distributions contain more tests and examples than binary distributions.