2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DataGripでHerokuのpostgresに接続する

Last updated at Posted at 2019-05-22

JetBrainsさん、Libpq (PostgreSQL Connection Strings)に対応してくれ〜

やり方

  • DataGripを開き、左上のDatabaseの下のプラスをクリック
  • Data Source -> PostgreSQLを選択
  • Generalの情報をHeroku -> Resources -> Add-ons -> Heroku Postgres -> Settings -> Database Credentialsから入力
  • Advancedのタブでsslをtrue、sslmodeをverify-caに、sslfactoryをorg.postgresql.ssl.NonValidatingFactoryに設定
Screen Shot 2019-05-22 at 15.59.40.png
  • そのあと左のカラムから、設定したdatabaseを右クリック、Database Tools -> Manage Shown Schemasで使用するDBを追加
Screen Shot 2019-05-22 at 16.08.44.png
  • その後、 -> databases -> -> schemas -> public -> tables でデータが見れます!

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?