728x90
반응형
MYSQL 에러 - 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 Editor and reconnect. 0.000 sec
에러 원인
테이블에서 키값을 이용한 update나 delete만을 허용하도록 되어 있는데, 그렇지 않게 좀더 넓은 범위의 sql을 적용하려고 할때 workbench에서 경고를 주는것임.
즉 하나의 레코드만을 update, delete하도록 설정되어 있는데, 다수의 레코드를 update나 delete하는 sql명령어가 실행되기 때문에 발생을 하는 것임.
해결방법1
set sql_safe_updates=0;
입력해주기
(일시적인 safe 모드 해제)
해결방법1
mysql workbench
edit - prefernce - sql Editor - safe updates 부분 체크 해제
그림와 같이 safe updates부분의 체크를 해제해 줍니다.
728x90
반응형
댓글