> 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="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2FwKHTAakJkf3ImKt5MnNZ%2Fimage.png?alt=media&amp;token=9c6fff2f-01bf-4569-b596-a28c8a619de3" 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="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2FZODj44bhAwHBbfPSDp6c%2Fimage.png?alt=media&amp;token=cd75c8e9-bbe6-4615-ae69-18d44aec056e" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.pentaho.com/pentaho-data-integration/setup/data-sources/databases.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
