8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 16 MySQL 数据字典 / 16.2 删除基于文件的元数据存储
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

16.2 基于文件的元数据存储移除16.2 Removal of File-based Metadata Storage

在以前的 MySQL 版本中,字典数据部分存储在元数据文件中。基于文件的元数据存储存在的问题包括昂贵的文件扫描、易受文件系统相关错误影响、处理复制和崩溃恢复失败状态的复杂代码,以及缺乏可扩展性,使得很难为新功能和关系对象添加元数据。In previous MySQL releases, dictionary data was partially stored in metadata files. Issues with file-based metadata storage included expensive file scans, susceptibility to file system-related bugs, complex code for handling of replication and crash recovery failure states, and a lack of extensibility that made it difficult to add metadata for new features and relational objects.

以下列出的元数据文件已从 MySQL 中删除。除非另有说明,之前存储在元数据文件中的数据现在存储在数据字典表中。The metadata files listed below are removed from MySQL. Unless otherwise noted, data previously stored in metadata files is now stored in data dictionary tables.

  • .frm 文件:表元数据文件。移除 .frm 文件后:.frm files: Table metadata files. With the removal of .frm files:

    • .frm 文件结构强加的 64KB 表定义大小限制已被移除。The 64KB table definition size limit imposed by the .frm file structure is removed.

    • 信息模式 TABLES 表的 VERSION 列报告硬编码值 10,这是 MySQL 5.7 中使用的最后一个 .frm 文件版本。The Information Schema TABLES table's VERSION column reports a hardcoded value of 10, which is the last .frm file version used in MySQL 5.7.

  • .par 文件:分区定义文件。InnoDB 在 MySQL 5.7 中引入对 InnoDB 表的原生分区支持后,停止使用分区定义文件。.par files: Partition definition files. InnoDB stopped using partition definition files in MySQL 5.7 with the introduction of native partitioning support for InnoDB tables.

  • .TRN 文件:触发器命名空间文件。.TRN files: Trigger namespace files.

  • .TRG 文件:触发器参数文件。.TRG files: Trigger parameter files.

  • .isl 文件:InnoDB 符号链接文件,包含在数据目录之外创建的单表文件表空间文件的位置。.isl files: InnoDB Symbolic Link files containing the location of file-per-table tablespace files created outside of the data directory.

  • db.opt 文件:数据库配置文件。每个数据库目录一个文件,包含数据库默认字符集属性。db.opt files: Database configuration files. These files, one per database directory, contained database default character set attributes.

  • ddl_log.log 文件:该文件包含由数据定义语句生成的元数据操作记录,例如 DROP TABLE 和 ALTER TABLE。ddl_log.log file: The file contained records of metadata operations generated by data definition statements such as DROP TABLE and ALTER TABLE.