slow_query_log

Overview

Log slow queries to a table or log file. Defaults logging to a file 'hostname'-slow.log or a table mysql.slow_log if --log-output=TABLE is used. Must be enabled to activate other slow log options.

See also: System Variables for MariaDB Enterprise Server 10.6, in 10.5 ES, and in 10.4 ES

USAGE

For details on how to use this system variable, see "Slow Query Logs".

DETAILS

PARAMETERS

Dynamic

Yes

Scope

Global, Session

Data Type

BOOLEAN (OFF, ON)

Default Value

OFF

SKYSQL

Cloud

SkySQL Topology

ES Ver

Default

AWS

Multi-Node Analytics

10.6

OFF (choices: ON, OFF)

Single Node Analytics

10.6

OFF (choices: ON, OFF)

Distributed Transactions

10.5

Not present

10.6

Not present

Replicated Transactions

10.4

OFF (choices: ON, OFF)

10.5

OFF (choices: ON, OFF)

10.6

OFF (choices: ON, OFF)

Single Node Transactions

10.4

OFF (choices: ON, OFF)

10.5

OFF (choices: ON, OFF)

10.6

OFF (choices: ON, OFF)

GCP

Multi-Node Analytics

10.6

OFF (choices: ON, OFF)

Single Node Analytics

10.6

OFF (choices: ON, OFF)

Distributed Transactions

10.5

Not present

10.6

Not present

Replicated Transactions

10.4

OFF (choices: ON, OFF)

10.5

OFF (choices: ON, OFF)

10.6

OFF (choices: ON, OFF)

Single Node Transactions

10.4

OFF (choices: ON, OFF)

10.5

OFF (choices: ON, OFF)

10.6

OFF (choices: ON, OFF)

CHANGE HISTORY

Release Series

History

10.6 Enterprise

  • Present starting in MariaDB Enterprise Server 10.6.4-1.

10.5 Enterprise

  • Present starting in MariaDB Enterprise Server 10.5.3-1.

10.4 Enterprise

  • Present starting in MariaDB Enterprise Server 10.4.6-1.

EXTERNAL REFERENCES