Why does the same query statement (or DIGEST_TEXT) in performance_schema or sys schema have different DIGEST?

(Doc ID 2385993.1)

Last updated on MAY 06, 2018

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.


When running a query on tables or views in performance_schema or sys schema, it can be found that multiple rows with the same query statement (or DIGEST_TEXT) have different DIGEST. For example:

mysql> select distinct db,query,digest from sys.statement_analysis where query = 'SET NAMES 'UTF8' ;';



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms