# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
