8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 2 安装 MySQL / 2.9 安装后设置和测试
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

2.9 安装后设置和测试2.9 Postinstallation Setup and Testing

本节讨论安装 MySQL 后应执行的任务:This section discusses tasks that you should perform after installing MySQL:

  • 如有必要,初始化数据目录并创建 MySQL 授权表。对于某些 MySQL 安装方法,可能会自动为您完成数据目录初始化:If necessary, initialize the data directory and create the MySQL grant tables. For some MySQL installation methods, data directory initialization may be done for you automatically:

    • 由 MSI 安装程序和 MySQL 配置器执行的 Windows 安装操作。Windows installation operations performed by the MSI installer and MySQL Configurator.

    • 在 Linux 上使用 Oracle 的服务器 RPM 或 Debian 发行版进行安装。Installation on Linux using a server RPM or Debian distribution from Oracle.

    • 在许多平台上使用本机打包系统进行安装,包括 Debian Linux、Ubuntu Linux、Gentoo Linux 等。Installation using the native packaging system on many platforms, including Debian Linux, Ubuntu Linux, Gentoo Linux, and others.

    • 在 macOS 上使用 DMG 发行版进行安装。Installation on macOS using a DMG distribution.

    对于其他平台和安装类型,您必须手动初始化数据目录。其中包括在 Unix 和类 Unix 系统上从通用二进制和源发行版安装,以及在 Windows 上从 ZIP 存档包安装。有关说明,请参阅第 2.9.1 节“初始化数据目录”。For other platforms and installation types, you must initialize the data directory manually. These include installation from generic binary and source distributions on Unix and Unix-like system, and installation from a ZIP Archive package on Windows. For instructions, see Section 2.9.1, “Initializing the Data Directory”.

  • 启动服务器并确保可以访问它。有关说明,请参阅第 2.9.2 节“启动服务器”和第 2.9.3 节“测试服务器”。Start the server and make sure that it can be accessed. For instructions, see Section 2.9.2, “Starting the Server”, and Section 2.9.3, “Testing the Server”.

  • 为初始 root 帐户(如果在数据目录初始化期间尚未完成)。密码可防止未经授权访问 MySQL 服务器。有关说明,请参阅第 2.9.4 节“保护初始 MySQL 帐户”。Assign passwords to the initial root account in the grant tables, if that was not already done during data directory initialization. Passwords prevent unauthorized access to the MySQL server. For instructions, see Section 2.9.4, “Securing the Initial MySQL Account”.

  • (可选)安排服务器在系统启动和停止时自动启动和停止。有关说明,请参阅第 2.9.5 节“自动启动和停止 MySQL”。Optionally, arrange for the server to start and stop automatically when your system starts and stops. For instructions, see Section 2.9.5, “Starting and Stopping MySQL Automatically”.

  • (可选)填充时区表以启用对指定时区的识别。有关说明,请参阅第 7.1.15 节“MySQL 服务器时区支持”。Optionally, populate time zone tables to enable recognition of named time zones. For instructions, see Section 7.1.15, “MySQL Server Time Zone Support”.

当您准备好创建其他用户帐户时,可以在部分中找到有关 MySQL 访问控制系统和帐户管理的信息。 8.2、“访问控制和账户管理”。When you are ready to create additional user accounts, you can find information on the MySQL access control system and account management in Section 8.2, “Access Control and Account Management”.