IT/MySQL

[MySQL] Error Code 1175

닉네 2021. 10. 21. 22:47
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.

 

해결 방법 1

Edit > Preferences...

 

SQL Editor > Safe Updates 체크 해제 > OK > MySQL Workbench 재시작

 

해결 방법 2

원하는 쿼리 실행 전 다음 쿼리 실행(일시적 Safe Updates 해제)

set sql_safe_updates=0;