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

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

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

17.1 InnoDB 简介17.1 Introduction to InnoDB

InnoDB 是一种通用存储引擎,兼顾高可靠性和高性能。在 MySQL 8.4 中,InnoDB 是默认的 MySQL 存储引擎。除非您已配置了其他默认存储引擎,否则在不带 ENGINE 子句的情况下执行 CREATE TABLE 语句将创建一个 InnoDB 表。InnoDB is a general-purpose storage engine that balances high reliability and high performance. In MySQL 8.4, InnoDB is the default MySQL storage engine. Unless you have configured a different default storage engine, issuing a CREATE TABLE statement without an ENGINE clause creates an InnoDB table.

InnoDB 的主要优势Key Advantages of InnoDB

表 17.1 InnoDB 存储引擎功能Table 17.1 InnoDB Storage Engine Features

功能Feature 支持情况Support
B 树索引B-tree indexes 是Yes
备份/时间点恢复(在服务器中实现,而非在存储引擎中实现。)Backup/point-in-time recovery (Implemented in the server, rather than in the storage engine.) 是Yes
集群数据库支持Cluster database support 否No
聚簇索引Clustered indexes 是Yes
压缩数据Compressed data 是Yes
数据缓存Data caches 是Yes
加密数据Encrypted data 是(通过加密功能在服务器中实现;在 MySQL 5.7 及以后版本,支持静态数据加密。)Yes (Implemented in the server via encryption functions; In MySQL 5.7 and later, data-at-rest encryption is supported.)
外键支持Foreign key support 是Yes
全文搜索索引Full-text search indexes 是(MySQL 5.6 及以后版本支持 FULLTEXT 索引。)Yes (Support for FULLTEXT indexes is available in MySQL 5.6 and later.)
地理空间数据类型支持Geospatial data type support 是Yes
地理空间索引支持Geospatial indexing support 是(MySQL 5.7 及以后版本支持地理空间索引。)Yes (Support for geospatial indexing is available in MySQL 5.7 and later.)
哈希索引Hash indexes 否(InnoDB 内部使用哈希索引来实现自适应哈希索引功能。)No (InnoDB utilizes hash indexes internally for its Adaptive Hash Index feature.)
索引缓存Index caches 是Yes
锁粒度Locking granularity 行Row
多版本并发控制 (MVCC)MVCC 是Yes
复制支持(在服务器中实现,而不是在存储引擎中。)Replication support (Implemented in the server, rather than in the storage engine.) 是Yes
存储限制Storage limits 64TB
T 树索引T-tree indexes 否No
事务Transactions 是Yes
更新数据字典统计信息Update statistics for data dictionary 是Yes

要比较InnoDB与 MySQL 提供的其他存储引擎的特性,请参见存储引擎特性表格,位于第 18 章,替代存储引擎.To compare the features of InnoDB with other storage engines provided with MySQL, see the Storage Engine Features table in Chapter 18, Alternative Storage Engines.

InnoDB 增强功能和新特性InnoDB Enhancements and New Features

有关 InnoDB 增强功能和新特性的详细信息,请参阅:For information about InnoDB enhancements and new features, refer to:

额外的 InnoDB 信息和资源Additional InnoDB Information and Resources