1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| show engine innodb status\G;
show processlist;
SELECT * FROM information_schema.processlist WHERE Command != 'Sleep' AND Time > 10 ORDER BY Time DESC;
kill id
show status like ‘%lock%’ show OPEN TABLES where In_use > 0;
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
show status like ‘%lock%’;
show grants for user_name;
show status;
show variables;
show logs;
show warnings;
show errors;
show global status;
show variables like 'max_connections'; show global status like 'max_used_connections';
|