# Connect with pgAdmin4

### Install pgAdmin4

To install pgAdmin4 on your local computer, follow the directions here:

{% embed url="<https://www.pgadmin.org/download/>" %}

### Connecting to Server

* Open pgadmin4 on your local computer
* Select "Object"
* Under "Objects", go to "Create" and then select "Server"
* OPTION 2: You can also click "Add New Server" in the "Quick Links" menu in the Dashboard
* Under "General"
  * Name: Write any name you'd like for your server to be on your local computer: EX. PostgreSQL AWS
* Under "Connection"
  * Host name/address: Paste your host name we copied from our AWS instance (discussed further in the Overview section of this chapter)
  * Port: 5432 (standard for PostgreSQL)
  * Username: your "username" created in the "Add Role to PostgreSQL Server" section in previous chapter
  * Password: type "password" for your "username"
  * Save password?: Select if you prefer not to type your password every time you log into the server locally
* Press the "Save" icon at the bottom right corner of the dialog box

You've now connected to your server!

{% embed url="<https://youtu.be/qk_TOpmCQpM>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aws-postgresql-docs.beliciarodriguez.com/remote-server-accessing-server-on-local-computer/connect-with-pgadmin4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
