The error is as follows:
Lock wait timeout exceeded; try restarting transaction ; Lock wait timeout
Finally, it was found that it was caused by a local debug jam. Just stop it
If a deadlock occurs, you can use the following command to differential lock and kill it
select * from information_schema.innodb_trx
Check Lock WAIT of trx_status field
copy trx_id
kill trx_id
If trx_status is RUNNING, ignore it, it means that the transaction is being executed without locks