Connect to a heroku database with pgadmin

后端 未结 5 959
情深已故
情深已故 2020-11-30 16:40

I would like to manage my heroku database with pgadmin client. By now, I\'ve been doing this with psql. When I use data from heroku pg:creden

5条回答
  •  我在风中等你
    2020-11-30 17:23

    This is for pgAdmin 4

    In order to connect pgAdmin to your database (postgres instance in Heroku), do the following:

    1. Login to Heroku, and select the application in which you have the database

    2. Select the Resources tab and then click on "Heroku Postgres Ad-on" (see below). This will open up a new tab.

    3. Select the Settings tab and then click on "View Credentials..." (see below)

    You will get the following information that you will use in pgAdmin:

    1. Go to pgAdmin, and create a new server

    1. In the General tab, give a useful name

    2. In the Connection tab, fill the info you got at Heroku

    3. In order to avoid seeing thousands of databases, you need to add your database name to DB restriction in the Advanced tab (see below)

提交回复
热议问题