根据文档的说法:
Access to the threads table does not require a mutex
and has minimal impact on server performance. The other
sources have negative performance consequences because they require a mutex. 因此,是的,我想使用线程表来检查正在运行的查询。问题是,PROCESSLIST_INFO列不包含完整的查询。它只包含查询的截断版本。有一个标志,即performance_schema_max_sql_text_length,它控制为SQL查询分配了多少字节。但它似乎影响了events_statements_history_long表。线程表输出没有更改。我是不是遗漏了什么?
发布于 2021-03-24 00:29:22
当我阅读手册时..。(换句话说,我没有测试以下内容。)
它不能动态设置;手册对此很清楚。相反,您应该能够在配置文件( performance_schema_max_sql_text_length等)中设置my.cnf。这需要重新启动服务器。
注意:设置限制为1MB。
https://dba.stackexchange.com/questions/287568
复制相似问题