8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

2.3.1 选择安装包2.3.1 Choosing an Installation Package

对于 MySQL 8.4,有多种安装包格式在 Windows 上安装 MySQL 时可供选择。本节中描述的软件包格式为:For MySQL 8.4, there are multiple installation package formats to choose from when installing MySQL on Windows. The package formats described in this section are:

MySQL 安装 MSIMySQL Installation MSI

此包的文件名类似于 mysql-community-8.4.9.msi 或 mysql-commercial-8.4.9.msi,并安装 MySQL 服务器和 MySQL 配置器。 MSI 包含一个 MySQL 配置器应用程序,建议大多数用户用于设置、配置和重新配置 MySQL 服务器。This package has a file name similar to mysql-community-8.4.9.msi or mysql-commercial-8.4.9.msi, and installs MySQL server along with MySQL Configurator. The MSI includes a MySQL Configurator application that is recommended for most users to set up, configure, and reconfigure the MySQL server.

MSI 和 MySQL 配置器可在所有支持 MySQL 的 Windows 版本上运行(请参阅https://www.mysql.com/support/supportedplatforms/database.html)。有关如何使用 MySQL 配置器配置 MySQL 的说明,请参阅第 2.3.2 节“配置:使用 MySQL 配置器”。The MSI and MySQL Configurator operate on all MySQL supported versions of Windows (see https://www.mysql.com/support/supportedplatforms/database.html). For instructions on how to configure MySQL using MySQL Configurator, see Section 2.3.2, “Configuration: Using MySQL Configurator”.

MySQL noinstall ZIP 存档MySQL noinstall ZIP Archives

这些软件包包含在完整的 MySQL 服务器安装包中找到的文件(GUI 除外)。此格式不包含自动安装程序,但包含用于配置 MySQL 服务器的 MySQL 配置器。These packages contain the files found in the complete MySQL Server installation package, with the exception of the GUI. This format does not include an automated installer, but does include MySQL Configurator to configure the MySQL server.

noinstall ZIP 存档被分成两个单独的压缩文件。主包名为mysql-VERSION-winx64.zip。它包含在您的系统上使用 MySQL 所需的组件。可选的 MySQL 测试套件、MySQL 基准测试套件和调试二进制文件/信息组件(包括 PDB 文件)位于名为 mysql-VERSION-winx64-debug-test.zip 的单独压缩文件中。The noinstall ZIP archives are split into two separate compressed files. The main package is named mysql-VERSION-winx64.zip. This contains the components needed to use MySQL on your system. The optional MySQL test suite, MySQL benchmark suite, and debugging binaries/information components (including PDB files) are in a separate compressed file named mysql-VERSION-winx64-debug-test.zip.

程序数据库 (PDB) 文件(文件扩展名为 pdb)提供用于在发生以下情况时调试 MySQL 安装的信息:一个问题。这些文件包含在 MySQL 的 ZIP 存档发行版(但不是 MSI 发行版)中。Program Database (PDB) files (with file name extension pdb) provide information for debugging your MySQL installation in the event of a problem. These files are included in ZIP Archive distributions (but not MSI distributions) of MySQL.

要通过提取 Zip 存档而不是使用 MSI 来安装 MySQL,请考虑以下事项:To install MySQL by extracting the Zip archive rather than use the MSI, consider the following:

  1. 如果您要从以前的版本升级,请参阅第 3.11 节“在 Windows 上升级 MySQL”,开始升级过程之前。If you are upgrading from a previous version please refer to Section 3.11, “Upgrading MySQL on Windows”, before beginning the upgrade process.

  2. 确保您以具有管理员权限的用户身份登录。Make sure that you are logged in as a user with administrator privileges.

  3. 选择安装位置。传统上,MySQL 服务器安装在 C:\mysql 中。如果您没有将 MySQL 安装在 C:\mysql 中,则必须在启动期间或在选项文件中指定安装目录的路径。请参阅第 2.3.3.2 节“创建选项文件”。Choose an installation location. Traditionally, the MySQL server is installed in C:\mysql. If you do not install MySQL at C:\mysql, you must specify the path to the install directory during startup or in an option file. See Section 2.3.3.2, “Creating an Option File”.

    Note

    MSI 将 MySQL 安装在 C:\Program Files\MySQL\MySQL Server 8.4\ 下。The MSI installs MySQL under C:\Program Files\MySQL\MySQL Server 8.4\.

  4. 使用以下命令将安装存档解压到所选安装位置您首选的文件压缩工具。某些工具可能会将存档提取到您选择的安装位置中的文件夹中。如果发生这种情况,您可以将子文件夹的内容移动到所选的安装位置。Extract the install archive to the chosen installation location using your preferred file-compression tool. Some tools may extract the archive to a folder within your chosen installation location. If this occurs, you can move the contents of the subfolder into the chosen installation location.

  5. 使用 MySQL 配置器(推荐)或第 2.3.3 节“配置:手动” 配置 MySQL 服务器。Configure the MySQL server using either MySQL Configurator (recommended) or Section 2.3.3, “Configuration: Manually”.

MySQL Docker 映像MySQL Docker Images

有关在 Windows 平台上使用 Oracle 提供的 MySQL Docker 映像的信息,请参阅第 2.5.6.3 节“使用 Docker 在 Windows 和其他非 Linux 平台上部署 MySQL”。For information on using the MySQL Docker images provided by Oracle on Windows platform, see Section 2.5.6.3, “Deploying MySQL on Windows and Other Non-Linux Platforms with Docker”.

Warning

Oracle 提供的 MySQL Docker 映像专为 Linux 平台构建。不支持其他平台,在其上运行 Oracle 的 MySQL Docker 映像的用户需要自行承担风险。The MySQL Docker images provided by Oracle are built specifically for Linux platforms. Other platforms are not supported, and users running the MySQL Docker images from Oracle on them are doing so at their own risk.