> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/mysql.md).

# MySQL

Frends offers seamless integration with [MySQL database](https://www.mysql.com), enabling you to effortlessly connect and automate data flows involving MySQL databases.

Frends provides tasks for performing all core MySQL operations.

By leveraging Frends' task-based approach, you can configure and customize MySQL integrations according to your specific requirements. Frends offers a wide range of tasks that facilitate integrations to a variety of systems and protocols.

## Use cases

Below you will find typical use cases for MySQL integrations and how they are implemented in Frends.

### Get data from the database and save as CSV

By using the [`ExecuteQuery`](/tasks/tasks/mysql/executequery.md) task, we can create an integration that retrieves data from a MySQL database and generates CSV exports for further processing.

<figure><img src="/files/RDuMQmVuyLCCUMDmPvaP" alt=""><figcaption><p>Export</p></figcaption></figure>

### Insert data to database

By using the file trigger and the [`ExecuteQuery`](/tasks/tasks/mysql/executequery.md) task, we can create an integration that listens for incoming CSV files and inserts the data into the appropriate table in a Microsoft SQL database.

<figure><img src="/files/LFfzkNRd4G3kAxEujUHn" alt=""><figcaption><p>Insert</p></figcaption></figure>


---

# 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.frends.com/tasks/tasks/mysql.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.
