2024년 3월 12일 화요일

[MySQL] Deadlock found when trying to get lock 수정

[MySQL] Deadlock found when trying to get lock 수정


에러:

Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction


해결:

/etc/mysql/mysql.conf.d 파일에

[mysqld]
transaction-isolation = READ-UNCOMMITTED

추가.



댓글 없음:

댓글 쓰기