# Retool

### 1. Access your dashboard

### 2. Click on "Database"

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FC4PmCvdssdZK0101UWcJ%2Fimage.png?alt=media&#x26;token=bec234ca-4826-4fdb-a51a-8e6f2d136a9e" alt=""><figcaption><p>Click on "Database"</p></figcaption></figure>

### 3. Reveal Database Options

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FHJf4s5lf97IeXa8NPUva%2Fimage.png?alt=media&#x26;token=da90958f-0c58-4ddb-b7aa-1ac685367090" alt=""><figcaption><p>Click and reveal options</p></figcaption></figure>

### 4. Click "Connection"

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FGd7DFtMqQEJ0hvKGJ8jb%2Fimage.png?alt=media&#x26;token=81ac4498-101c-4eb5-a342-ebc0488cc0cf" alt=""><figcaption><p>Click "Connection"</p></figcaption></figure>

### 5. Reveal Postgres Connection URL

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2Fyv8kB9Dbm9MiAuwXynpc%2Fimage.png?alt=media&#x26;token=cceba2b3-4391-4460-98f3-c0687499bd9b" alt=""><figcaption><p>Reveal the Connection URL</p></figcaption></figure>

### 6. Copy connection URL

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FkO9kfm8fgbH1EWEZ6Mjr%2Fimage.png?alt=media&#x26;token=9191d98e-214e-4292-868a-a2bd8cfea156" alt=""><figcaption><p>Copy the connection URL</p></figcaption></figure>

### 7. Get credentials from connection URL

{% hint style="info" %}
Retool doesn't give you the port info to connect Postgres via connection URL.
{% endhint %}

From your connection URL. Manually get the data needed to fill the connection form that will be shown in Step 9.&#x20;

* **Database Type**
* **Host**
* **Port**
* **Username**
* **Password**
* **Database**
* **Schema**

### 6. Click on "Connections"

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FBkhpOI9lBd9zzDJW2Xaz%2Fimage.png?alt=media&#x26;token=3ed3f62f-4093-436b-a75b-10ece5c06fdb" alt=""><figcaption><p>Go to "Connections" on Stacksync</p></figcaption></figure>

### 7. Click on "Create New Connection"

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FhOm3c8wAS5xnnfNeS8ot%2Fimage.png?alt=media&#x26;token=98c53e81-a7b0-417f-8350-029d26afc61b" alt=""><figcaption></figcaption></figure>

### 8. Click "Postgres"

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2F9qRPLHn11hHUelfnF4tM%2Fimage.png?alt=media&#x26;token=e1c96afb-b03e-42c7-a0a9-a38e23693d2b" alt=""><figcaption></figcaption></figure>

### 9. Fill the connection form

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FuzRUYEM1lIMrN9ODqw5H%2Fimage.png?alt=media&#x26;token=ab726695-9403-4830-96a9-8b64a8ad2b3e" alt=""><figcaption><p>Fill the connection form with all the data from step 7</p></figcaption></figure>
