[MYSQL] Workbench Error Code: 1175: You are using safe update mode...

T_Jun·2022년 7월 26일
0

ERROR 해결노트

목록 보기
2/2

MySQL Workbench에서 where을 사용하지 않고 넓은 범위의 데이터를 수정, 삭제하려고 할 경우 아래와 같은 에러가 발생한다.

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.

아래 쿼리문으로 안전모드를 해제할 수 있다.

SET SQL_SAFE_UPDATES = 0;

다시 안전모드를 사용하려면 아래 쿼리문을 사용하면 된다.

SET SQL_SAFE_UPDATES = 1;
profile
학부

0개의 댓글