> For the complete documentation index, see [llms.txt](https://docs.mydbsync.com/cloud-replication-main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mydbsync.com/cloud-replication-main/v7/dynamics-365-crm-replication/running-replication/configure-database.md).

# Configure Database

Start with the database setup tab, to fill in all the necessary details and follow the same procedure for testing and validating your database credentials.

Follow these steps to configure and setup your MySQL or  SQL Server database

* Log in to DBSync Cloud Replication instance
* Configure Database
* Click the Database icon from the top-navigation toolbar
* To start with database credentials the user has to enter all the configuration details like host, port, username, password, database name, and schema.
* Once, all the details are entered by the user then URL details will get auto-filled.&#x20;
* Click Save&#x20;
* A pop-up confirming the Connection is Saved will appear on the screen
* Click Test Connection
* A pop-up confirming the connection is established will appear on the screen.
* Click Next
* You will be redirected to configure Dynamics 365 CRM objects

## Advance Settings: <a href="#configuredatabase-advancesettings" id="configuredatabase-advancesettings"></a>

This Tab primarily focuses on 3 advanced settings:

1. File Download

* Click the checkbox next to download as local files to download into your local system
* The URL for download file directory is provided&#x20;
* Click the checkbox next to Keep Multiple Version of Files this will assist in keeping multiple version of the files when downloading (Will rename older version before downloading new ones)&#x20;

2\. Prefix settings:

* Include a prefix if required and enter the prefix details in the table below which will get populated into the database.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mydbsync.com/cloud-replication-main/v7/dynamics-365-crm-replication/running-replication/configure-database.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
