400-808-9187
合作咨询

测试新闻

发布时间:2023-08-15 11:00:04

1 undefined22222








undefined22222

MySQL 5.6 Reference Manual  /   INFORMATION_SCHEMA Tables  /  The INFORMATION_SCHEMA OPTIMIZER_TRACE Table

undefined

21.12 The INFORMATION_SCHEMA OPTIMIZER_TRACE Table

The  OPTIMIZER_TRACE  table provides information produced by the optimizer tracing capability for traced statements. To enable tracking, use the  optimizer_trace  system variable. For details, see  MySQL Internals: Tracing the Optimizer.

The  OPTIMIZER_TRACE  table has these columns:

  • QUERY

    The text of the traced statement.

  • TRACE

    The trace, in  JSON format.

  • MISSING_BYTES_BEYOND_MAX_MEM_SIZE

    Each remembered trace is a string that is extended as optimization progresses and appends data to it. The  optimizer_trace_max_mem_size  variable sets a limit on the total amount of memory used by all currently remembered traces. If this limit is reached, the current trace is not extended (and thus is incomplete), and the  MISSING_BYTES_BEYOND_MAX_MEM_SIZE column shows the number of bytes missing from the trace.

  • INSUFFICIENT_PRIVILEGES

    If a traced query uses views or stored routines that have  SQL SECURITY with a value of  DEFINER, it may be that a user other than the definer is denied from seeing the trace of the query. In that case, the trace is shown as empty and  INSUFFICIENT_PRIVILEGES has a value of 1. Otherwise, the value is 0.

客服中心

关注我们

关注微信公众号

锁定君子签最新资讯,还可在公众号快速签署文件

收藏微信小程序

使用微信扫一扫添加小程序,文件签署更方便

君子签    |
易保全    |
微版权    |
电话    |

立即咨询

帮助中心

关注我们

返回顶部

© 2014- 重庆君子签科技有限公司版权所有 渝ICP备14003483号-12 渝公网安备 50019002501878号 信查查 举报电话:023-67686535 举报邮箱:kefu@ebaoquan.org

信息
X
确认