MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction

mac2025-05-22  47

//数据库锁表 测试的时候,刷新次数太频繁,导致数据库锁表 MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction 解决办法: 第一步:

select * from information_schema.INNODB_TRX

第二步:杀掉等待以及运行的进程id(trx_mysql_thread_id)

kill '154397';
最新回复(0)