ablog

不器用で落着きのない技術者のメモ

macOS に psql をインストールする

インストール

  • インストールする
$ brew install postgresql
  • インストールされたバージョンを確認する
$ psql -V
psql (PostgreSQL) 12.3

接続する

$ psql "host=aurora-postgres-116.cluster-******.ap-northeast-1.rds.amazonaws.com user=awsuser dbname=mydb port=5432"
Password for user awsuser:
psql (12.3, server 11.6)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.

mydb=>

環境