> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dbpilot.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to PostgreSQL

To connect to a PostgreSQL database:

1. Click the connection selector button
2. Then click "Add connection"

<img src="https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/add-connection.png" alt="Add connection button" className="blog-image-sm" />

Next, click the "PostgreSQL" button:

<img src="https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/add-connection-postgresql.png" alt="Select new connection type" className="blog-image-sm" />

Then, fill in your connection details. Afterwards, click "Save":

<img src="https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/form-postgresql.png" alt="New connection form" className="blog-image-sm" />

* **Name**: An arbitrary name to identify the connection in DB Pilot.
* **Database**:  The name of the database to connect to.
* **Host**: The address of your PostgreSQL server. Leave empty to use to use default of `127.0.0.1`.
* **Port**: The port of your PostgreSQL server. Leave empty to use default of `5432`.
* **User**: The username for authentication. Leave empty to use your system username as default.
* **Password**: The password for authentication. Leave empty if no password is required.
