摘要: ##查看被锁的表show OPEN TABLES where In_use > 0 ##查看被锁的表的进程; show processlist; ##杀死进程 杀死进程(就是[show processlist;]命令的id列) kill 12641; select * from sys.innodb 阅读全文
posted @ 2022-01-07 13:59 金虹巴巴 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 查死锁 select CONVERT(VARCHAR(100), request_session_id) spid ,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_ 阅读全文
posted @ 2022-01-07 13:57 金虹巴巴 阅读(458) 评论(0) 推荐(0) 编辑