文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

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

7.1.17 服务器端帮助支持7.1.17 Server-Side Help Support

MySQL 服务器支持一个 HELP 语句,它从 MySQL 参考手册中返回信息(参见 第 15.8.3 节,“HELP 语句”)。这些信息存储在 mysql 架构中的几个表里(参见 第 7.3 节,“mysql 系统架构”)。HELP 语句的正常运行要求这些帮助表必须被初始化。MySQL Server supports a HELP statement that returns information from the MySQL Reference Manual (see Section 15.8.3, “HELP Statement”). This information is stored in several tables in the mysql schema (see Section 7.3, “The mysql System Schema”). Proper operation of the HELP statement requires that these help tables be initialized.

对于在 Unix 上使用二进制或源代码分发版进行的 MySQL 新安装,当您初始化数据目录时,会进行 help-table 内容初始化(请参阅 第 2.9.1 节,“初始化数据目录”)。对于 Linux 上的 RPM 分发版或 Windows 上的二进制分发版,内容初始化会作为 MySQL 安装过程的一部分进行。For a new installation of MySQL using a binary or source distribution on Unix, help-table content initialization occurs when you initialize the data directory (see Section 2.9.1, “Initializing the Data Directory”). For an RPM distribution on Linux or binary distribution on Windows, content initialization occurs as part of the MySQL installation process.

对于使用二进制分发版进行 MySQL 升级的情况,帮助表内容会由服务器自动升级。要手动升级,请在 share 或 share/mysql 目录中找到 fill_help_tables.sql 文件。切换到该目录,并使用 mysql 客户端处理该文件,方法如下:For a MySQL upgrade using a binary distribution, help-table content is upgraded automatically by the server. To upgrade it manually, locate the fill_help_tables.sql file in the share or share/mysql directory. Change location into that directory and process the file with the mysql client as follows:

mysql -u root -p mysql < fill_help_tables.sql

此处显示的命令假设您使用像 root 这样的账户连接到服务器,该账户具有修改 mysql 模式下表的权限。根据需要调整连接参数。The command shown here assumes that you connect to the server using an account such as root that has privileges for modifying tables in the mysql schema. Adjust the connection parameters as required.