I've set max_execution_time
to a sensible value so I can protect MySQL from rogue queries done by users to prevent resource exhaustion.
I need though to find what queries are terminated, to analyse them and potentially improve them. Looking to the slow-query log I cannot find them, or rather I did not find a hint that the query did not complete due to the time threshold. Grepping the error 3024 (ER_QUERY_TIMEOUT
) did not help neither.
Is there a way to find this information on mysql 5.7 using mysql tooling or external like percona (pt-query-digest
did not helped) ?