We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。 文档 | FAQ
如果监控的MySQL数据库实例参数lower_case_table_names=0 调用会话管理--事务管理功能时,会报错,原因是执行下面的SQL,p.time中的p是大写 select trx.trx_started, trx.trx_state, trx.trx_operation_state, trx.trx_mysql_thread_id, trx.trx_tables_locked, trx.trx_rows_locked, trx.trx_rows_modified, trx.trx_is_read_only, trx.trx_isolation_level, p.user, p.host, p.db, TO_SECONDS(NOW()) - TO_SECONDS(trx.trx_started) trx_idle_time, p.time thread_time, IFNULL((SELECT GROUP_CONCAT(t1.sql_text SEPARATOR '; ') FROM performance_schema.events_statements_history t1 INNER JOIN performance_schema.threads t2 ON t1.thread_id = t2.thread_id WHERE t2.PROCESSLIST_ID = p.id), '') info FROM information_schema.INNODB_TRX trx INNER JOIN information_schema.PROCESSLIST p ON trx.trx_mysql_thread_id = p.id WHERE trx.trx_state = 'RUNNING' AND p.COMMAND = 'Sleep' AND P.time > 3 ORDER BY trx.trx_started ASC;
期待结果:
实际结果:
应用版本/分支:
部署方式:Docker、手工部署
The text was updated successfully, but these errors were encountered:
#1175
Sorry, something went wrong.
No branches or pull requests
在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。
文档 | FAQ
重现步骤
如果监控的MySQL数据库实例参数lower_case_table_names=0
调用会话管理--事务管理功能时,会报错,原因是执行下面的SQL,p.time中的p是大写
select trx.trx_started,
trx.trx_state,
trx.trx_operation_state,
trx.trx_mysql_thread_id,
trx.trx_tables_locked,
trx.trx_rows_locked,
trx.trx_rows_modified,
trx.trx_is_read_only,
trx.trx_isolation_level,
p.user,
p.host,
p.db,
TO_SECONDS(NOW()) - TO_SECONDS(trx.trx_started) trx_idle_time,
p.time thread_time,
IFNULL((SELECT
GROUP_CONCAT(t1.sql_text SEPARATOR ';
')
FROM performance_schema.events_statements_history t1
INNER JOIN performance_schema.threads t2
ON t1.thread_id = t2.thread_id
WHERE t2.PROCESSLIST_ID = p.id), '') info
FROM information_schema.INNODB_TRX trx
INNER JOIN information_schema.PROCESSLIST p
ON trx.trx_mysql_thread_id = p.id
WHERE trx.trx_state = 'RUNNING'
AND p.COMMAND = 'Sleep'
AND P.time > 3
ORDER BY trx.trx_started ASC;
期待结果和实际结果
期待结果:
实际结果:
截图
错误日志
版本信息
应用版本/分支:
部署方式:Docker、手工部署
The text was updated successfully, but these errors were encountered: