Database

[Error] MySQL Error Code:1175 You are using safe update mode ~ 에러 발생 이유와 해결 법

31daylee 2024. 2. 2. 17:11
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 

 

테이블의 데이터를 delete 으로 삭제 하려는 도중 Error Code:1175 발생 

 

 

 

원인

MySQL Workbench 에서 기본적으로 제공하는 SAFE MODE 설정 

 

 

 

해결 법

1. SQL 문으로 해결 

SET SQL_SAFE_UPDATES = 0;

 

 

2. 옵션 변경

 

Edit - Preferences - SQL Editor - Safe Updates 체크 해제 해주기 

 

 

 

728x90