# Connecting to the Database on Mac

## Prerequisite

* An Umbraco Cloud project
* [Whitelisted IP](https://docs.umbraco.com/umbraco-cloud/databases/cloud-database#opening-the-firewall) on Umbraco Cloud
* [Azure Data Studio](https://azure.microsoft.com/en-us/products/data-studio)

### Connecting to the Database

Follow the steps below to connect and work with your Umbraco Cloud Database on a Mac.

1. Go to **SQL Connection Details** in the **Configuration** menu on Umbraco Cloud.
2. Note down the **Server name**, **Login**, **Password**, and **Database**.

<figure><img src="/files/zTxFuHT51vB2YefbN5Tx" alt=""><figcaption><p>SQL Connection Details on Umbraco Cloud</p></figcaption></figure>

3. Open **Azure Data Studio**.
4. Click "**Create a connection**" on the welcome page in Azure Data Studio.

<figure><img src="/files/lDTR4IXkp64JGKyV4Hxq" alt=""><figcaption><p>Create a Connection in Azure Data Studio</p></figcaption></figure>

5. Change the Authentication type to SQL Login and enter the following information in the Connection details dialog:
   1. Add the **Server name.**
   2. Add the **Login**.
   3. Add the **Password**.
   4. Add the **Database**.

<div data-full-width="false"><figure><img src="/files/7UmZt1P77cjwEYib8uQr" alt="" width="375"><figcaption><p>Entering connection details in Azure Data Studio</p></figcaption></figure></div>

6. Click **Connect** once the connection details have been filled out.

You have now connected to your database. You can work with the databases on Umbraco Cloud like you could on any other host. Remember to let Umbraco Cloud do the work when it comes to the Umbraco-related tables (`Umbraco*` and `CMS*` tables).


---

# 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.umbraco.com/umbraco-cloud/build-and-customize-your-solution/set-up-your-project/databases/cloud-database/connecting-to-the-database-on-mac.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.
