Performance Schema System Variables Scope Global Dynamic No SET_VAR  Hint Applies No Type Integer Default Value -1  (signifies autoscaling; do not assign this literal value) Command-Line Format --performance-schema-max-sql-text- length=# System Variable performance_schema_max_sql_text_length Scope Global Dynamic No SET_VAR  Hint Applies No Type Integer Default Value 1024 Minimum Value 0 Maximum Value 1048576 Command-Line Format --performance-schema-max-stage- classes=# System Variable performance_schema_max_stage_classes Scope Global Dynamic No SET_VAR  Hint Applies No 5113 • performance_schema_max_stage_classes •The  QUERY_SAMPLE_TEXT  column of the  events_statements_summary_by_digest  summary table. •The  SQL_TEXT  column of the  events_statements_current ,  events_statements_history , and  events_statements_history_long  statement event tables. Decreasing the  performance_schema_max_sql_text_length  value reduces memory use but causes more statements to become indistinguishable if they differ only at the end. Increasing the value increases memory use but permits longer statements to be distinguished. Any bytes in excess of  performance_schema_max_sql_text_length  are discarded and do not appear in the column. Statements differing only after that many initial bytes are indistinguishable in the column. The maximum number of bytes used to store SQL statements. The value applies to storage required for these columns: The maximum number of instrumented socket objects. For information about how to set and use this variable, see Section 27.7, “Performance Schema Status Monitoring” . • performance_schema_max_sql_text_length