-
Notifications
You must be signed in to change notification settings - Fork 111
events_statements_history_long
xiaoboluo768 edited this page Jun 8, 2020
·
2 revisions
- events_statements_history_long表包含最近的N个语句事件。在server启动时,N的会值自动调整。 要显式设置N的大小,可以在server启动之前设置系统变量performance_schema_events_statements_history_long_size的值。 statement事件需要执行结束时才会添加到该表中。 当添加新事件到该表时,如果该表的全局配额已满,则会丢弃该表中较旧的事件
- events_statements_history_long与events_statements_current表结构相同
- 允许使用TRUNCATE TABLE语句
- 参考链接:https://dev.mysql.com/doc/refman/5.7/en/events-statements-history-long-table.html
上一篇: events_statements_history表 | 下一篇: prepared_statements_instances表
- 验证、测试、整理:罗小波
- QQ:309969177
- 提示:本系列文章的主体结构遵循Oracle MySQL 官方 5.7 手册中,关于information_schema、mysql schema、performance_schema、sys schema的章节结构体系,并额外添加了一些验证、测试数据。鉴于本人精力和能力有限,难免出现一些纰漏,欢迎大家踊跃指正!