일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- svn
- cherrypick
- Android Studio
- Checkout
- terms
- git
- 자바
- IntelliJ IDEA Community
- error
- commit
- Branch
- syntax
- install
- intellij 연동
- sourcetree
- constructor
- java
- Subversion
- IntelliJ
- Android
- 캡슐화
- 생성자
- Class
- TortoiseSVN
- gradle
- 상속
- 특징
- 문법
- VCS
- SSL
Archives
- Today
- Total
Jay's Developer Note
[Workbench] Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column 본문
TroubleShooting
[Workbench] Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
Jay(J) 2023. 2. 6. 16:17728x90
Error Code: 1175.
개인 프로젝트를 진행하는 중 Workbench 에서
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
에러가 발생했다.
신규 Column 을 추가한 상황이고 그 Column 을 전부 특정 값인 1로 설정해야하는 상황이었다.
근데 WHERE 절이 필요하다고 나오면서 안되는 상황이었다.
아무래도 모든 Row 에 영향을 끼치는 위험한 SQL 쿼리문이라 방지해주는 옵션으로 보인다.

해결방법
이 에러는 풀 에러 메시지를 보면 해결법이 나온다.
아래는 풀 텍스트다.
# Time Action Message Duration / Fetch
0 1 00:40:29 UPDATE command_info SET data_version = 1 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.000 sec
설정에서 무언가를 Toggle 하고 재접속 하라고 한다.
Edit > Preferences... 를 클릭하고 Safe Updates 옵션을 체크 해제한다.

체크 해제 후 Reconnect 를 하면

쿼리문으로 해도 되고 애초에 추가할 때 모든 값을 동일하게 적용돼야 하는 Column 이라면
추가할 때 Default Value 를 줘도 동일하게 적용할 수 있다.

728x90