버글버글

[mysql] Error Code 1046, 1175 본문

Database/Mysql

[mysql] Error Code 1046, 1175

Bugle 2022. 12. 19. 21:59
반응형

▶ Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum. 

 

해결방법

1. [Edit] - [Preferences...] 클릭

 

2. [SQL Editor] - Safe Updates (rejects UPDATEs and DELETEs with no restrictions)의 체크를 풀어준다

3. 꼭 MySQL Workbench 재시작 해야 적용! (그래야 항시 체크가 풀려 있다)

▶ 재부팅을 하고나면 꼭 사용 할 스키마 선택해주기.. 8ㅅ8.. 안해주니까 아래 오류가 떴다...

 

▶ Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar. 

 - 사이드바의 SCHEMAS 목록에서 이름을 두 번 클릭하여 사용할 기본 DB를 선택합니다.

 -  mysql 재부팅을 하여 사용할 스키마를 설정 안해주었다.

 

1. Schemas 탭에서 사용할 Schemas를 더블 클릭 해준다.

2. 또는 

USE 스키마 이름;

 

 

 

 

반응형

'Database > Mysql' 카테고리의 다른 글

[mysql] 기본 설정 및 table 생성, 삭제  (0) 2022.12.13