> 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/two-way-sync/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/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

<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! 🥳
