MySQL database theory outlined lock (MySql lock mechanism)

definition:

Here Insert Picture Description

Lifestyle Shopping:

Here Insert Picture Description

Lock Category:

Data from the type of operation (read / write) min:
read lock (shared locks): for the same data, multiple read operations can be carried out without affecting each other at the same time.
Write lock (exclusive lock): Before the current operation is not completed, it will block other write locks and read locks.

From the size of the data sub-operations:
table lock, line lock

Published 217 original articles · won 125 Like · views 10000 +

Guess you like

Origin blog.csdn.net/qq_39885372/article/details/104202934