2014년 2월 11일 화요일

MySQL Workbench에서 update 실행 시 1175 에러

MySQL Workbench에서 update 명령 실행 시 Error code 1175가 떨어지는 경우가 있다.







Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect.

이 에러는 WHERE절에 key(index) 컬럼이 조건으로 들어가 있지 않은 경우에 발생한다.

이를 해결하기 위해서는 WHERE절에 key(index) 컬럼을 조건으로 넣어 주거나 아래 환경변수를 설정해 주면 해결된다.
SET SQL_SAFE_UPDATES=0;

 

댓글 없음:

댓글 쓰기