赞
踩
show OPEN TABLES where In_use > 0;
show processlist;
kill id
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
show status like '%lock%';
show variables like 'innodb%lock%';
MySQL 5.6.16 版本之后,修改系统参数 innodb_status_output
- set GLOBAL innodb_status_output=ON;
-
- set GLOBAL innodb_status_output_locks=ON;
show engine innodb status;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。