"PostgreSQL"의 두 판 사이의 차이
(→타임존) |
(→pgAdmin) |
||
16번째 줄: | 16번째 줄: | ||
===pgAdmin=== | ===pgAdmin=== | ||
+ | 웹서버가 내장된 관리툴(멀티 플랫폼) | ||
+ | |||
https://www.pgadmin.org/ | https://www.pgadmin.org/ | ||
+ | |||
+ | === Adminer === | ||
+ | 리눅스 베이스 관리툴 | ||
+ | https://www.adminer.org/ | ||
+ | |||
+ | == 사용자 == | ||
+ | db » postgres » pg_catalog » pg_user에 저장된다. | ||
+ | |||
+ | ==== 생성 ==== | ||
+ | 사용자 추가 명령은 다음과 같다. | ||
+ | CREATE USER name [ [ WITH ] option [ ... ] ] | ||
+ | |||
+ | ===== 옵션 ===== | ||
+ | |||
+ | * PASSWORD 'password' ; Password 설정 | ||
+ | |||
==[[docker]]== | ==[[docker]]== | ||
2020년 9월 6일 (일) 04:08 판
목차
설정파일 위치
cli나 pgAdmin에서 show config_file;
쿼리 로그 보기 설정
log_statement = 'none' -> 'all' 변경후 서비스 재시작
로그파일 위치
/var/log/postgresql
cli tool
$ su - postgres
$ psql
데이터베이스 리스트 보기
# \list
pgAdmin
웹서버가 내장된 관리툴(멀티 플랫폼)
Adminer
리눅스 베이스 관리툴 https://www.adminer.org/
사용자
db » postgres » pg_catalog » pg_user에 저장된다.
생성
사용자 추가 명령은 다음과 같다.
CREATE USER name [ [ WITH ] option [ ... ] ]
옵션
- PASSWORD 'password' ; Password 설정
docker
실행
$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres