数据库锁表问题
-- 查詢數據庫最大連接數
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+简单绘图(二)
- 下一篇: [置顶] 2014年八大最热门IT技能