> For the complete documentation index, see [llms.txt](https://docs.balkan.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integration/mysql-integration-setup.md).

# MySQL Integration Setup

### Getting Started <a href="#h_01h9kvy29hnnqzfen9ze3ytpqy" id="h_01h9kvy29hnnqzfen9ze3ytpqy"></a>

BalkanID recommends creating a separate service account for the purposes of this integration, instead of using personal or employee named accounts.&#x20;

#### Requirements: <a href="#h_01hq2z1ne11qby24j77aa0k27q" id="h_01hq2z1ne11qby24j77aa0k27q"></a>

```
- `host`: Hostname or IP address of the MySQL server
- `port`: Port number of the MySQL server
- `username`: Username to connect to the MySQL server (must have access to view users and their privileges)
- `password`: Password to connect to the MySQL server
```

### Configure integration within your BalkanID tenant <a href="#h_01h9kvy29jdnd3n5h8ye9qdqbz" id="h_01h9kvy29jdnd3n5h8ye9qdqbz"></a>

1. Login to the BalkanID application and switch to the tenant you would like to add your integration to.
2. Head to *Integrations* > *Third Party Applications* and click **Add Integration**, select **MySQL**. Set up the *Primary Application owner* and the *Description*, if any.<br>

   <figure><img src="/files/Cl3Bl6O5rbzHIJHEiDaI" alt=""><figcaption></figcaption></figure>
3. *MySQL* would have been added to the list of applications. Click on the **Configure and Integrate** button beside the integration name, and configure the fields with the values that were noted prior. It should look like this:<br>

   <figure><img src="/files/q0V5DW15x8coQLLA1Gwm" alt=""><figcaption></figcaption></figure>
4. Once you filled in the information, click **Save changes**. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the *Integrations* page. Integrations are synced daily. When data is available, the integration Status column will read **Connected** and the integration Message will read **Data available**.


---

# 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.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integration/mysql-integration-setup.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.
