These thread states are associated with the query cache (see Section 8.10.3, “The MySQL Query Cache”).
The server is checking whether the user has privileges to access a cached query result.
The server is checking whether the current query is present in the query cache.
Query cache entries are being marked invalid because the underlying tables have changed.
The server is taking the result of a query from the query cache and sending it to the client.
The server is storing the result of a query in the query cache.
This state occurs while a session is waiting to take the query cache lock. This can happen for any statement that needs to perform some query cache operation, such as an
DELETEthat invalidates the query cache, a
SELECTthat looks for a cached entry,
RESET QUERY CACHE, and so forth.