1 to see which threads are running
show processlist; // list the top 100
show full processlist; // List All
2 to see if the lock table
Show Open the Tables;
IN_USE indicates how many threads are using
Name_locked indicates whether the table is locked
3, the transaction is a lock to view
the SELECT * from information_schema.innodb_locks;
4, waiting for the lock to view the affairs of
the SELECT * from information_schema.innodb_lock_waits;
5, view server status
; show status like '% lock% '
6, see how it works innodb engine information
Show Status Engine InnoDB;
. 7, view server configuration parameters
Show Variables;
Show Variables like '%% timeout'; // timeout parameter
mysql server-side command
Guess you like
Origin www.cnblogs.com/zhaofeng555/p/11311635.html
Ranking