Mysql解决死锁的问题,防止阻塞

#查看mysql当前存在的事务,如果存在死锁,则会记录
select * from information_schema.innodb_trx ;

#删除当前事务的死锁进程。
kill trx_mysql_thread_id

猜你喜欢

转载自www.cnblogs.com/ywjfx/p/12197563.html