> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/connectors/postgres/authorize-postgres/cloud-sql.md).

# Cloud SQL

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

#### 2. Click on SQL

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

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

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

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

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

#### 5. Go to "Users"

<figure><img src="/files/LxJtubs855aa4dOO4bb2" 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/ZrGAdgG6xZM59jsVAJXL" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="/files/2qgh0Z0fjysWgJha0eMd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/grkdExPvIZ27fowgQYyY" 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/GpwuUScqdgrMeXlvuPYs" 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/xjDUqnGcgVEs7pC9QRQ9" alt=""><figcaption><p>Paste your database connection URL into Stacksync</p></figcaption></figure>

## That's it! 🥳
