반응형
AWS에서 만든 데이터베이스에 접속하는 방법은
PG Admin을 이용하는 방법과 psql을 이용한
콘솔 접근 방식 두가지가 있다.
먼저 생성한 데이터베이스의 정보를 가져온다.
프로젝트에 postgres ENGINE을 비롯한 config을
확인한다.
ENGINE
NAME
USER
PASSWORD
HOST
PORT
psql --host=mypostgresql.c6c8mwvfdgv0.us-west-2.rds.amazonaws.com --port=5432 --username=awsuser --password --dbname=mypgdb
psql ^
--host=<DB instance endpoint> ^
--port=<port> ^
--username=<master username> ^
--password ^
--dbname=<database name>
위 명령어를 통해서 psql 명령어로 DB에 정상적으로
접근이 가능하다.
반응형
'Programming' 카테고리의 다른 글
윈도우 C 드라이브 용량 부족문제, 분명히 다 지웠는데 사용용량이 실제 사용량보다 많은 경우 해결방법 windows c drive is showing more used spaces that I actually use (1) | 2021.11.26 |
---|---|
Ubuntu에서 postgreSQL 사용하는 방법 (0) | 2021.11.24 |
Django Scheduler 사용하는 방법 (0) | 2021.11.24 |
ModuleNotFoundError: No module named 'storages' (0) | 2021.11.12 |
postgreSQL 이름의 릴레이션이 없습니다. relations does not exist ERR 해결방법 (0) | 2021.10.24 |
JVM Java Virtual Machine 메모리 구조 (0) | 2021.10.21 |
댓글