psql로 PostgreSQL 접속

  • osstech
    (열린기술자)
  • osstech's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
26 Oct 2019 08:14 - 26 Oct 2019 08:17 #4900 작성자: osstech
osstech 님의 글: psql로 PostgreSQL 접속
psql \
   --host=<DB instance endpoint> \
   --port=<port> \
   --username=<master user name> \
   --password \
   --dbname=<database name>
만약 psql: FATAL: database "xxx" does not exist 처럼 database 이름이 없다고 하면 database 이름을 다시 한번 확인할 필요가 있다.

참고로 AWS RDS를 사용하고 있다면, AWS에 표시되는 DB 이름은 여기에 제공해야하는 DB 이름이 아니다. 기본값은 "postgres"이다.
Time to create page: 0.048 seconds
Powered by Kunena Forum