1. 程式人生 > >MySQL資料庫鎖介紹

MySQL資料庫鎖介紹

+--------------+-------------+-----------+-----------+---------------------+------------+------------+-----------+----------+--------------------+
| lock_id      | lock_trx_id | lock_mode | lock_type | lock_table          | lock_index | lock_space | lock_page | lock_rec | lock_data          |
+--------------+-------------+-----------+-----------+---------------------+------------+------------+-----------+----------+--------------------+
| 45288:57:5:5 | 45288       | X,GAP     | RECORD    | `test`.`test_index` | idx_age    |         57 |         5 |        5 | 19, 0x000000000208 |
| 45289:57:5:5 | 45289       | S,GAP     | RECORD    | `test`.`test_index` | idx_age    |         57 |         5 |        5 | 19, 0x000000000208 |
+--------------+-------------+-----------+-----------+---------------------+------------+------------+-----------+----------+--------------------+