> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/reference/data-sources/mariadb.md).

# MariaDB

UI Bakery allows you to easily connect to MariaDB with no need for additional layers like APIs or third-party services.

## Configuration

### Prerequisites

If your database is hosted behind a Firewall, you need to add our [IP addresses](/concepts/data-sources.md#whitelisting-ip-addresses) to the Firewall whitelist.

### Connecting the data source

1. On the **Data sources** page, click **Connect**, and select *MariaDB* in the Data sources list.
2. Specify all the required credentials and click **Test connection** to check whether the data source can be connected.
3. Finally, click **Connect Datasource** to complete the setup.

<figure><img src="/files/LIyP2MAcrQtrTaOwt56Q" alt=""><figcaption></figcaption></figure>

UI Bakery will extract the database structure and store column types. This data will be used to suggest the proper [table columns and form field types](/concepts/components/work-with-components/field-types-and-types-recognition.md).

## Usage

Once you have established the connection between UI Bakery and MariaDB, you can access its data - load it and send it back.

The following *Action steps* are supported with MariaDB:

* [Load Table](/reference/working-with-actions/load-table-action.md)
* [Load Row](/reference/working-with-actions/load-row-action.md)
* [Create Row](/reference/working-with-actions/create-row-action.md)
* [Bulk Create Rows](/reference/working-with-actions/bulk-create-rows-action.md)
* [Update Row](/reference/working-with-actions/update-row-action.md)
* [Delete Row](/reference/working-with-actions/delete-row-action.md)
* [Bulk Delete Rows](/reference/working-with-actions/bulk-delete-rows-action.md)
* [SQL Query](/reference/working-with-actions/sql-query.md)

After executing an action, you might also want to transform or map your data and display it in a component. Check out the following pages for more information:point\_down:

{% content-ref url="/pages/FlXv8DDV9LepOxZWK1Z5" %}
[Data mapping & transforming](/build-from-scratch/getting-started/transform-data-with-javascript/mapping-and-transforming-data.md)
{% endcontent-ref %}

{% content-ref url="/pages/A1K6ffkaBf0Sq0hH1au3" %}
[Bind data to UI](/build-from-scratch/getting-started/bind-data-to-ui.md)
{% endcontent-ref %}


---

# 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.uibakery.io/reference/data-sources/mariadb.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.
