MySQL table is locked

MySQL table is locked

 

When the database table is locked, the data can no longer be deleted. The general idea is to kill the thread of a connection.

 

1. show full processlist;



 then kill id

 

 

2. select * from information_schema.innodb_trx;



 Then kill trx_mysql_thread_id

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326445231&siteId=291194637