반응형

Safe Mode

에러 내용

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.

 

원인

Workbench에서 안전 모드를 사용하고 있기 때문에 조건없이 테이블을 업데이트 할때 뜨는 오류입니다.

( 여러 컬럼을 한번에 업데이트 하려고 했기 때문입니다. )

 

해결방법 1

SET sql_safe_updates=0;

 

해결방법 2

가장 아래 Safe Updates (rejects UPDATEs and DELETEs with no restrictions)를 해제해주면 됩니다.

 
반응형

+ Recent posts