用方法 1、在Options-Disklogon-Disks中去除右侧除U盘以外盘符的勾选。 2、选择Options-Disklogon-General,然后在右侧的Disk removal behavior下拉菜单中选择Lock computer when the disk is removed,这样我们就实现了拔下U盘自动锁定的功能,在Log on to Windows下拉中选择Log on when disk is connecte,这样就可以实现插入U盘自动登陆的功能,在Unlock
1、查询进程
show processlist
2、 查询到相对应的进程,然后 kill id
验证(kill后再看是否还有锁)
2、查询是否锁表
show OPEN TABLES where In_use > 0;
示例:
新建一个会话执行如下的显示锁示例
LOCK TABLES account_data.account READ;
SELECT SLEEP(160);
UNLOCK TABLES account_data.account;
另开启一个会话检查锁表情况:
my