8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 10 优化 / 10.11 优化锁定操作
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

10.11 优化锁操作10.11 Optimizing Locking Operations

MySQL 使用 锁定 来管理对表内容的争用:MySQL manages contention for table contents using locking:

  • 内部锁定在 MySQL 服务器内部执行,以管理多个线程对表内容的争用。这种类型的锁定是内部的,因为它完全由服务器执行,并且不涉及其他程序。参见 第 10.11.1 节,“内部锁定方法”。Internal locking is performed within the MySQL server itself to manage contention for table contents by multiple threads. This type of locking is internal because it is performed entirely by the server and involves no other programs. See Section 10.11.1, “Internal Locking Methods”.

  • 外部锁定发生在服务器和其他程序锁定MyISAM表文件时,以协调各个程序何时可以访问这些表。参见第 10.11.5 节,“外部锁定”。External locking occurs when the server and other programs lock MyISAM table files to coordinate among themselves which program can access the tables at which time. See Section 10.11.5, “External Locking”.