My Oracle Support Banner

How Can a Long Running Query in MySQL be Killed Automatically?; max_execution_time (Doc ID 1498522.1)

Last updated on NOVEMBER 15, 2023

Applies to:

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

Goal

Learn about what options are available if you need to automatically kill long running queries.
 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
 MySQL 5.7 and Later For SELECT Statement
 The max_statement_time Option
 The MAX_STATEMENT_TIME Clause for SELECT Statements
 All Versions and All Statement Types
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.