AuthorZero的博客

mysql死锁 Deadlock

"项目中的死锁发现及解决思路"

“Only do what your heart tells you. ” 业务死锁背景今天有用户反应后台系统时快时慢的,于是上服务器看了下日志。发现了很多死锁的异常情况,异常日志如下 1com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get loc......