Mysql view all threads, locked table

View all MySQl associated thread

show full processlist;

Kill thread id thread 2

kill 2

View server status

show status like '%lock%';

View server configuration parameters

show variables like '%timeout%';

/*
查看所有MYSQl相关的线程
*/
show full processlist;

/*
杀死线程id为2的线程
*/
kill 2

/*
查看服务器状态
*/
show status like '%lock%';

/*
查看服务器配置参数
*/
show variables like '%timeout%';

Reference links

MySQL table can not modify, delete and other operations, stuck, approach the situation of deadlock.

How to check if the table is locked in mysql

Guess you like

Origin www.cnblogs.com/lick468/p/11364250.html