> For the complete documentation index, see [llms.txt](https://academy.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.pentaho.com/pentaho-data-integration/setup/data-sources/databases.md).

# Databases

{% hint style="warning" %}
If you have followed the [Pentaho 11 Installation](https://academy.pentaho.com/pentaho-11-installation-en/setup/ubuntu-pentaho-lab), then you will have already installed a MySQL container with a sampledata database.
{% endhint %}

x

{% tabs %}
{% tab title="Docker" %}
{% hint style="info" %}

#### Docker

{% endhint %}

x

x

x
{% endtab %}

{% tab title="MySQL" %}
{% hint style="info" %}

#### **MySQL Container**

{% endhint %}

{% file src="/files/OUwzKjbSmSC7ujrABdVT" %}

{% file src="/files/mpgAHyKvJ8nEtyuoGlGw" %}

1. Run the following script to create a MySQL folder and copy the required files.

```bash
cd
cd ~/Workshop--Installation/MySQL
# Make it executable
chmod +x copy_mysql.sh
./copy_mysql.sh
```

2. Check the Directory has been created and the files copied over.
3. Execute the docker-compose script to create the container.

```bash
cd
cd ~/MySQL
# Make it executable
chmod +x run_mysql_compose.sh
./run_mysql_compose.sh
```

<figure><img src="/files/U9jdl5M0fzncYYwOd43D" alt="" width="500"><figcaption><p>Deploy MySQL Docker container</p></figcaption></figure>

4. Check the container is up and running in Docker.

```
docker ps
```

<figure><img src="/files/1aHF1xzgyctmxIzj8xBn" alt=""><figcaption><p>Docker MySQL containers</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://academy.pentaho.com/pentaho-data-integration/setup/data-sources/databases.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.
