MySQL 8.4 Release Notes
ENABLED_ROLES 表提供有关当前会话中已启用角色的信息。The ENABLED_ROLES table provides
information about the roles that are enabled within the current
session.
ENABLED_ROLES 表包含以下列:The ENABLED_ROLES table has these
columns:
ROLE_NAME被授予角色的用户名部分。The user name part of the granted role.
ROLE_HOST被授予角色的主机名部分。The host name part of the granted role.
IS_DEFAULTYES或NO,取决于该角色是否为默认角色。YESorNO, depending on whether the role is a default role.IS_MANDATORYYES或NO,取决于该角色是否为强制角色。YESorNO, depending on whether the role is mandatory.