How to Use FLUSH TABLES WITH READ LOCK With a Subset of Tables? (Doc ID 2012654.1)

Last updated on MARCH 08, 2017

Applies to:

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

Goal

When using the statement

it will lock all tables in the whole MySQL instance.

Learn how to use FLUSH TABLES WITH READ LOCK to lock only a subset of the tables, for example all tables in a specific database.
 

Solution

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