어제와 똑같이 살면서 다른 미래를 기대하지 말자

[mysql] ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction 본문

IT관심분야/Database

[mysql] ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction

플랜액터 2013. 4. 19. 14:03
많은 수의 row를 삭제한다거나 할 경우 아래와 같은 에러가 발생할 수 있다...

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction

1. 현재설정 확인
$ show variables like 'innodb_lock_wait_timeout';
2. 재설정 (원하는 시간만큼 설정)
$ set innodb_lock_wait_timeout=100;
3. 재설정 확인
$ show variables like 'innodb_lock_wait_timeout';

2번에서 에러가 발생할 경우 my.cnf 에서 수정을 해줘야 함.. (동적으로 변경되지 않을경우)

ERROR 1238 (HY000): Variable 'innodb_lock_wait_timeout' is a read only variable

http://dev.mysql.com/doc/innodb/1.1/en/innodb-other-changes-innodb_lock_wait_timeout.html

'IT관심분야 > Database' 카테고리의 다른 글

[mysql] ERROR 1418 발생 시  (0) 2014.01.28
Comments