当前位置:
首页 >
数据库锁表问题
发布时间:2025/7/25
128
豆豆
-- 查询数据库最大连接数
show variables like "max_connections";
--
show full processlist;
show processlist;
select *from performance_schema.events_statements_current;
-- 查询上锁的语句
SELECT * FROM information_schema.innodb_trx;
-- 锁等待查询
select * from information_schema.innodb_lock_waits G;
select * from information_schema.innodb_locks G;
找到锁表的语句直接kill掉该进程ID
转载于:https://www.cnblogs.com/gcixx/p/11145434.html
总结
- 上一篇: c# GDI+简单绘图(二)
- 下一篇: 2 datax mysql 和 mysq