解锁:
先查询到所有被锁表:
show open tables where In_use > 0;
再查看进程号:
show processlist;
根据进程号结束进程:
kill 11110;
锁表:
mysql>unlock tables;
锁定表
mysql>lock tables table read;
增加锁定:
lock tables table write;
解锁:
先查询到所有被锁表:
show open tables where In_use > 0;
再查看进程号:
show processlist;
根据进程号结束进程:
kill 11110;
mysql>unlock tables;
锁定表
mysql>lock tables table read;
增加锁定:
lock tables table write;