Backend/데이터베이스
[데이터베이스 / DB] Error Code: 1175, You are using safe update mode and you tried to update a table without a WHERE.... 처리방법
냠냠:)
2021. 2. 23. 22:37
MySQL Workbench를 사용하여 모든 코드 값을 변경해주는 업데이트(Update) 작업을 진행하다 에러가 났다.
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.
Error Code : 1175, 대충 해석하자면.. 안전한 업데이트 모드를 사용하고, where절을 빼고 실행하려 했다고 한다.
해결방법은 안전한 업데이트 모드를 꺼주는 것인데,
1. MySQL Workbench 설정. Edit -> Preperence
2. SQL로 직접 변경
1
|
SET SQL_SAFE_UPDATES = 0;
|
cs |
반응형