버그처리

MySQL Safe Mode 에러 해결

김잠봉 2023. 6. 19. 12:39
728x90
 
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.0048 sec

 

1. Query 문으로 Safe Mode 해제하기

SET SQL_SAFE_UPDATES = 0; 세이프 모드 OFF

Query 문

SET SQL_SAFE_UPDATES = 1; 세이프 모드 ON

 

2. WorkBench 상에서 Safe Mode 해제하기

Setting => SQL Editor

혹시 모를 사태에 권장하지 않는 옵션

728x90
SMALL