3

Is there a way to log queries generated by triggers in MySQL in the General Query Log? My General Query Log doesn't seem to pick these up.

Also, if a query generated by a trigger exceeds the threshold for slow queries, will it be logged in the slow query log?

1 Answer 1

2

Yup, via binary log for stored programs (stored procedures and functions, triggers, and events)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.