Server System Variables Default Value FILE Valid Values TABLE FILE NONE The destination or destinations for general query log and slow query log output. The value is a list one or more comma-separated words chosen from  TABLE ,  FILE , and  NONE .  TABLE  selects logging to the general_log  and  slow_log  tables in the  mysql  system schema.  FILE  selects logging to log files. NONE  disables logging. If  NONE  is present in the value, it takes precedence over any other words that are present.  TABLE  and  FILE  can both be given to select both log output destinations. This variable selects log output destinations, but does not enable log output. To do that, enable the general_log  and  slow_query_log  system variables. For  FILE  logging, the  general_log_file and  slow_query_log_file  system variables determine the log file locations. For more information, see Section 5.4.1, “Selecting General Query Log and Slow Query Log Output Destinations” . If you enable this variable with the slow query log enabled, queries that are expected to retrieve all rows are logged. See Section 5.4.5, “The Slow Query Log” . This option does not necessarily mean that no index is used. For example, a query that uses a full index scan uses an index but would be logged because the index would not limit the number of rows. The  log_raw  system variable is initially set to the value of the  --log-raw  option. See the description of that option for more information. The system variable may also be set at runtime to change password masking behavior. 821 Command-Line Format --log-raw[={OFF|ON}] System Variable ( ≥  8.0.19) log_raw Scope ( ≥  8.0.19) Global Dynamic ( ≥  8.0.19) Yes SET_VAR  Hint Applies ( ≥  8.0.19) No Type Boolean Default Value OFF • log_raw • log_queries_not_using_indexes Command-Line Format --log-queries-not-using- indexes[={OFF|ON}] System Variable log_queries_not_using_indexes Scope Global Dynamic Yes SET_VAR  Hint Applies No Type Boolean Default Value OFF