8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

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

15.7.1 账户管理语句15.7.1 Account Management Statements

MySQL account information is stored in the tables of the mysql system schema. This database and the access control system are discussed extensively in Chapter 7, MySQL Server Administration, which you should consult for additional details.

Important

一些 MySQL 版本在授权表中引入了更改,以添加新的权限或功能。为了确保您能够利用任何新功能,每当升级 MySQL 时,请将您的授权表更新到当前结构。请参阅 第 3 章,升级 MySQL。Some MySQL releases introduce changes to the grant tables to add new privileges or features. To make sure that you can take advantage of any new capabilities, update your grant tables to the current structure whenever you upgrade MySQL. See Chapter 3, Upgrading MySQL.

当启用 read_only 系统变量时,account-management 语句需要 CONNECTION_ADMIN权限(或已废弃的 SUPER 权限),此外还需其他必要的权限。这是因为它们修改了 mysql。When the read_only system variable is enabled, account-management statements require the CONNECTION_ADMIN privilege (or the deprecated SUPER privilege), in addition to any other required privileges. This is because they modify tables in the mysql system schema.

账户管理语句是原子级且安全的。更多信息请参见 第 15.1.1 节,“原子数据定义语句支持”。Account management statements are atomic and crash safe. For more information, see Section 15.1.1, “Atomic Data Definition Statement Support”.