Mysql solves lock conflicts

All previous transactions

select * from information_schema.innodb_trx

Current lock

select * from information_schema.innodb_locks

Correspondence of lock wait

select * from information_schema.innodb_lock_waits

mysql -uroot -p

kill threadId
by finding the thread id number, kill

Guess you like

Origin blog.csdn.net/qq_38893133/article/details/106573105