摘要: MySQL查看锁的sql 查看数据库状态 # 会显示加锁的信息等等 show engine innodb status; 查看正在执行的线程信息 show full processlist; 查看正在锁的表 show open tables where in_use > 0; show open t 阅读全文
posted @ 2023-03-27 14:05 一万年以前 阅读(162) 评论(0) 推荐(0) 编辑
摘要: sql如下: update pay_trans set return_state = 1 WHERE order_id = #{orderId} and user_id = #{userId} 批量执行此条sql时,导致数据表被锁,所有交易异常。 经排查where条件order_id and use 阅读全文
posted @ 2023-03-27 13:45 一万年以前 阅读(196) 评论(0) 推荐(0) 编辑