When preparing to install MySQL, decide which version and distribution format (binary or source) to use.准备安装MySQL时,请决定使用哪个版本和分发格式(二进制或源代码)。
First, decide whether to install a development release or a General Availability (GA) release. Development releases have the newest features, but are not recommended for production use. 首先,决定是安装开发版本还是安装通用可用性(GA)版本。开发版本具有最新的功能,但不建议用于生产。GA releases, also called production or stable releases, are meant for production use. We recommend using the most recent GA release.GA发行版,也称为生产版或稳定版,用于生产使用。我们建议使用最新的GA版本。
The naming scheme in MySQL 8.0 uses release names that consist of three numbers and an optional suffix (for example, mysql-8.0.1-dmr). The numbers within the release name are interpreted as follows:MySQL 8.0中的命名方案使用由三个数字和一个可选后缀组成的发布名称(例如mysql-8.0.1-dmr)。发布名称中的数字解释如下:
The first number (8) is the major version number.第一个数字(8)是主要版本号。
The second number (0) is the minor version number. 第二个数字(0)是次要版本号。Taken together, the major and minor numbers constitute the release series number. The series number describes the stable feature set.总的来说,主要数字和次要数字构成了发行序列号。序列号描述了稳定的特征集。
The third number (1) is the version number within the release series. 第三个数字(1)是发布系列中的版本号。This is incremented for each new bugfix release. In most cases, the most recent version within a series is the best choice.每个新的错误修复版本都会增加此值。在大多数情况下,系列中的最新版本是最佳选择。
Release names can also include a suffix to indicate the stability level of the release. Releases within a series progress through a set of suffixes to indicate how the stability level improves. The possible suffixes are:发布名称还可以包括一个后缀,以指示发布的稳定性级别。一个系列中的发布通过一组后缀进行,以指示稳定性级别如何提高。可能的后缀有:
dmr indicates a development milestone release (DMR). 表示开发里程碑发布(DMR)。MySQL development uses a milestone model, in which each milestone introduces a small subset of thoroughly tested features. MySQL开发使用了一个里程碑模型,其中每个里程碑都引入了经过彻底测试的特性的一小部分。From one milestone to the next, feature interfaces may change or features may even be removed, based on feedback provided by community members who try these early releases. 根据尝试这些早期版本的社区成员提供的反馈,从一个里程碑到下一个里程碑,功能界面可能会发生变化,甚至功能可能会被删除。Features within milestone releases may be considered to be of pre-production quality.里程碑版本中的功能可以被视为具有预生产质量。
rc indicates a Release Candidate (RC). 表示发布候选(RC)。Release candidates are believed to be stable, having passed all of MySQL's internal testing. 候选版本被认为是稳定的,已经通过了MySQL的所有内部测试。New features may still be introduced in RC releases, but the focus shifts to fixing bugs to stabilize features introduced earlier within the series.RC版本中可能仍会引入新功能,但重点转移到修复bug上,以稳定系列早期引入的功能。
Absence of a suffix indicates a General Availability (GA) or Production release. GA releases are stable, having successfully passed through the earlier release stages, and are believed to be reliable, free of serious bugs, and suitable for use in production systems.没有后缀表示通用性(GA)或生产发布。GA版本是稳定的,已经成功地通过了早期的发布阶段,并且被认为是可靠的,没有严重的错误,并且适合在生产系统中使用。
Development within a series begins with DMR releases, followed by RC releases, and finally reaches GA status releases.一个系列的开发从DMR版本开始,然后是RC版本,最后是GA状态的版本。
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. 选择要安装的MySQL版本后,决定为您的操作系统安装哪种分发格式。对于大多数用例,二进制分布是正确的选择。二进制发行版以原生格式适用于许多平台,例如Linux的RPM包或macOS的DMG包。Distributions are also available in more generic formats such as Zip archives or compressed tar files. 发行版也有更通用的格式,如Zip档案或压缩的tar文件。On Windows, you can use the MySQL Installer to install a binary distribution.在Windows上,您可以使用MySQL安装程序安装二进制发行版。
Under some circumstances, it may be preferable to install MySQL from a source distribution:在某些情况下,最好从源发行版安装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.您想在某个显式位置安装MySQL。标准的二进制发行版可以在任何安装位置运行,但您可能需要更大的灵活性来将MySQL组件放置在您想要的位置。
You want to configure mysqld with features that might not be included in the standard binary distributions. 您希望使用标准二进制发行版中可能不包含的功能来配置mysqld。Here is a list of the most common extra options used to ensure feature availability:以下是用于确保功能可用性的最常见的额外选项列表:
-DWITH_LIBWRAP=1
for TCP wrappers support.支持TCP包装器。
-DWITH_ZLIB={system|bundled}
for features that depend on compression对于依赖于压缩的功能
-DWITH_DEBUG=1
for debugging support用于调试支持
For additional information, see Section 2.9.7, “MySQL Source-Configuration Options”.有关更多信息,请参阅2.9.7节,“MySQL源配置选项”。
You want to configure mysqld without some features that are included in the standard binary distributions.您想要在没有标准二进制发行版中包含的某些功能的情况下配置mysqld。
You want to read or modify the C and C++ code that makes up MySQL. For this purpose, obtain a source distribution.您想要读取或修改组成MySQL的C和C++代码。为此,请获取源分发。
Source distributions contain more tests and examples than binary distributions.源发行版比二进制发行版包含更多的测试和示例。