Along the way, MySQL gathers some information and statistics about each query it executes, including:
Who issued the query
How long the process took
How many rows were returned
That information will appear in the slow query log if the query time exceeds the server’s threshold, and the log is enabled.
