|
mysql> lock table token WRITE;
Query OK, 0 rows affected (0.00 sec)
mysql> show processlist;
+-------+-------------+---------------------------------+------+-------------+---------+----------------------------------------------------------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-------+-------------+---------------------------------+------+-------------+---------+----------------------------------------------------------------+------------------+
| 1 | system user | | NULL | Connect | 2434260 | Waiting for master to send event | NULL |
| 52263 | np | mainmysql:52583 | NULL | Binlog Dump | 12812 | Has sent all binlog to slave; waiting for binlog to be updated | NULL |
| 53211 | np | localhost | RF2 | Query | 0 | NULL | show processlist |
+-------+-------------+---------------------------------+------+-------------+---------+----------------------------------------------------------------+------------------+
3 rows in set (0.00 sec)
其实并没有告之哪个表有被锁定了 |
|