为 Aurora MySQL 开启 Performance Schema - Amazon Aurora
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

Aurora MySQL 开启 Performance Schema

假设已为数据库实例打开性能详情,但当前未管理 Performance Schema。如果要让性能详情自动管理 Performance Schema,请完成以下步骤。

配置 Performance Schema 以进行自动管理
  1. 登录 Amazon Web Services Management Console 并通过以下网址打开 Amazon RDS 控制台:https://console.aws.amazon.com/rds/

  2. 选择参数组

  3. 选择数据库实例的参数组名称。

  4. 选择编辑

  5. 在搜索栏中输入 perf

  6. 选择 performance_schema 参数。

  7. 选择设置为默认值

  8. 选择将值设置为默认值进行确认。

  9. 选择 Save Changes(保存更改)。

  10. 重启数据库实例。

    重要

    无论何时打开或关闭 Performance Schema,都要确保重启数据库实例。

有关修改实例参数的更多信息,请参阅在 Amazon Aurora 中修改数据库参数组中的参数。有关控制面板的更多信息,请参阅 使用 Performance Insights 控制面板分析指标。有关 MySQL Performance Schema 的更多信息,请参阅 MySQL 文档中的 MySQL Performance Schema(适用于 8.0)和 MySQL Performance Schema(适用于 8.4)。