找出未提交的MySQL线程/事务:SELECTtrx_id,trx_state,trx_started,trx_mysql_thread_id,CURRENT_TIMESTAMP-trx_startedASRUN_TIMEfrominformation_schema.innodb_trx;SELECT*frominformation_schema.processlist;这个能看到上面哪个SQL线程ID(下图的378号线程就是造成MDL锁的..
分类:
数据库 时间:
2017-06-12 22:19:05
阅读次数:
193