- @참고: https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=seuis398&logNo=220851196727
'DB > SQL' 카테고리의 다른 글
[MySQL] Safe update mode off (0) | 2020.11.10 |
---|---|
[PostgreSQL] 설치, 사용자 추가 및 DB 생성, Client Tool (0) | 2020.06.08 |
- @참고: https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=seuis398&logNo=220851196727
[MySQL] Safe update mode off (0) | 2020.11.10 |
---|---|
[PostgreSQL] 설치, 사용자 추가 및 DB 생성, Client Tool (0) | 2020.06.08 |
- @참고: jun7222.tistory.com/371
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.
MySQL에서 default로 column을 delete할 때 where 절을 쓰지 않고는 지워지지 않게 세팅이 되어있다.
이를 바꾸기 위해선 MySQL Safe mode를 off 해줘야 한다.
방법1. MySQL Workbench에서 변경하는 방법
Edit > Preferences > SQL Editor 페이지에서 밑에 Safe Updates (rejects UPDATEs and DELETEs with no restrictions) 체크 해제
Query > Reconnect to Server
방법2. 쿼리로 변경하는 방법
SET SQL_SAFE_UPdates=0;
[MySQL] collation (0) | 2022.02.15 |
---|---|
[PostgreSQL] 설치, 사용자 추가 및 DB 생성, Client Tool (0) | 2020.06.08 |
- @참고 : https://dora-guide.com/postgresql-install/
PostgreSQL 설치 한후 PostgreSQL 접속 까지 해보자! - 도라가이드
PostgreSQL 설치 부터 PostgreSQL 접속까지 하는 방법에 대해 알아보자! 초보자도 따라 할 수 있도록 쉽게 순서대로 설명해보았습니다. PostgreSQL 이란 무엇인가? 데이터베이스 관리 시스템 postgresql downlo
dora-guide.com
- @참고 : https://browndwarf.tistory.com/3
PostgreSQL 사용자 추가 및 DB/ Table 생성
지난 포스팅 'PostgreSQL 설정 변경 및 실행 (RHEL7 환경)' 에 이어 사용자 추가와 DB 생성을 해보려 한다. 1. 사용자 생성 현재 사용자 정보를 확인할 때는 아래와 같이 pg_shadow나 pg_user를 사용하면 된다
browndwarf.tistory.com
- @참고 : https://americanopeople.tistory.com/316
(PostgreSQL) PostgreSQL Client Tool 비교하기
나는 PostgreSQL Client 유목민이다 🐎🐎 그러던 중 PostgreSQL Client 비교한 글을 읽어봤는데, 꽤 유용했다! 적당한 툴을 찾지 못해서 PGAdmin, Psequel를 혼용해서 사용하고 있었는데, 이제는 TablePlus으로 ��
americanopeople.tistory.com
[MySQL] collation (0) | 2022.02.15 |
---|---|
[MySQL] Safe update mode off (0) | 2020.11.10 |