---
title: Deploy phpMyAdmin with AI on Blossom
url: "/deploy/phpmyadmin/"
canonical_url: https://blossom88.com/deploy/phpmyadmin/
markdown_url: https://blossom88.com/deploy/phpmyadmin.md
summary: Import and export a sample MySQL table in your browser.
categories:
- deployment
- databases
stack:
- PHP
- MySQL
---

# Deploy phpMyAdmin with AI on Blossom

[phpMyAdmin](https://www.phpmyadmin.net/) is a web interface for MySQL
and MariaDB. This recipe uses Blossom Managed MySQL to import a small
SQL file and download the data again.

## Ask Your Agent

> **Ask your AI agent:** Deploy phpMyAdmin on Blossom and help me import and export a sample MySQL table.
>
> Follow this guide: https://blossom88.com/deploy/phpmyadmin/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| phpMyAdmin | Browse tables, import a schema, and export the data | App Capacity behind Blossom Account access |
| MySQL | Store the imported table and rows | Blossom Managed MySQL |

## Deploy phpMyAdmin

Use the [official Apache image](https://hub.docker.com/_/phpmyadmin)
and put its endpoint behind Blossom Account access. Use a login scoped
to the sample database. phpMyAdmin uses the
[GNU GPL 2.0 license](https://github.com/phpmyadmin/phpmyadmin/blob/RELEASE_5_2_3/LICENSE).

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use HTTP port `80`. Link the MySQL instance and set `PMA_HOST` and
`PMA_PORT` to its private endpoint. Leave the arbitrary-server selector
disabled so phpMyAdmin connects to the configured database server.

    blossom environment:deploy --id environment-100 --follow

</details>

## Import and Export a Sample Table

Open the sample database and use **Import** to upload a SQL file with a
table and two rows. Use **Export** to download the schema and data. Open
the SQL export and check that it contains the two rows.

> **Ask your AI agent:** Help me import a tiny notes table and verify both rows in the SQL export.

> Follow this guide: https://blossom88.com/deploy/phpmyadmin/



![Import the sample SQL file.](/deploy/assets/images/phpmyadmin/schema-import.webp)

## Reopen the Table After an Update

Replace the phpMyAdmin Container, sign in again, and check that the same
rows are still in MySQL.

> **Ask your AI agent:** Replace the phpMyAdmin Container and check that I can still open the imported notes.

> Follow this guide: https://blossom88.com/deploy/phpmyadmin/



![Open the imported notes after replacing the Container.](/deploy/assets/images/phpmyadmin/imported-notes-table.webp)

## What You Get

A private phpMyAdmin workspace with a sample import and SQL export you
can open and inspect.

## What You Get

- A private phpMyAdmin page linked to MySQL
- An imported sample table and a verified SQL export
- The same rows after replacing the phpMyAdmin Container

Tested on Blossom: Both rows were in the SQL export and reopened after Container replacement.
