- 论坛徽章:
- 0
|
mysql> LOCK TABLE T_W_RegPhone READ;
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH TABLES;
Query OK, 0 rows affected (0.00 sec)
mysql> show processlist;
+-----+-------------+-----------+------+---------+--------+-----------------------------------------------------------------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----+-------------+-----------+------+---------+--------+-----------------------------------------------------------------------+------------------+
| 1 | system user | | NULL | Connect | 183915 | Waiting for master to send event | NULL |
| 2 | system user | | NULL | Connect | 101 | Has read all relay log; waiting for the slave I/O thread to update it | NULL |
| 124 | root | localhost | leo | Query | 0 | NULL | show processlist |
+-----+-------------+-----------+------+---------+--------+-----------------------------------------------------------------------+------------------+
3 rows in set (0.00 sec);
我执行了锁表的动作,怎么在进程里看不到LOCK呢? |
|