# Cloud SQL

#### 1. Go to your [Google Cloud Console](https://console.cloud.google.com)

#### 2. Click on SQL

<figure><img src="/files/KVkmRS5s3qEkBSTdJ9h8" alt=""><figcaption></figcaption></figure>

#### 3. Write down the public IP address of the SQL Instance you want to use

<figure><img src="/files/SwTwtZ2UbClNEHYnJfCu" alt=""><figcaption></figcaption></figure>

#### 4. Click on the instance you want to use

<figure><img src="/files/kTeF2pVK2VOothhYtPqM" alt=""><figcaption></figcaption></figure>

#### 5. Go to "Users"

<figure><img src="/files/aQwFyiAxmeJe9S7IIDP6" alt=""><figcaption></figcaption></figure>

#### 6. Make sure the user you want to use is listed here, let's take "fake\_user"

<figure><img src="/files/4cDQmqOzKIpXRWyZl9Xf" alt=""><figcaption></figcaption></figure>

#### NOTE: You can manage the user's password by clicking on the 3 dots

<figure><img src="/files/uu4IfVueKFe9vXq8QaHV" alt=""><figcaption></figcaption></figure>

#### NOTE: you can add a new user by clicking "ADD USER ACCOUNT"

<figure><img src="/files/uGlqZhOdPd6pZW8FG6HM" alt=""><figcaption></figcaption></figure>

#### 7. Click on "Databases" and find the database inside the SQL Instance&#x20;

<figure><img src="/files/rqIAOMTUZyRo3Qvyj7Dy" alt=""><figcaption></figcaption></figure>

8. Write down the Database Name you want to use, here let's take "my\_tutorial\_database"

<figure><img src="/files/vJz4cbkxbmJ6bvAJ8hDv" alt=""><figcaption></figcaption></figure>

8. In Cloud SQL the port is always 5432, the connection string will then have the form: postgres\://\[USER]:\[PASSWORD]@\[PUBLIC\_IP\_ADDRESS]:5432/\[DATABASE\_NAME] In our example: postgres\://fake\_user:\*\*\*\*\*\*\*\*@74.75.177.158:5432/my\_tutorial\_database- you can now paste into Stacksync

<figure><img src="/files/pMFt8xjSRrToBUPxhlQI" alt=""><figcaption><p>Paste your database connection URL into Stacksync</p></figcaption></figure>

## That's it! 🥳


---

# 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://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/cloud-sql.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.
