---
title: "Deploy phpMyAdmin"
description: "Web UI for MySQL and MariaDB: browse, query, import and export data"
category: "Storage"
url: https://railway.com/deploy/phpmyadmin-1
---

# Deploy phpMyAdmin

Web UI for MySQL and MariaDB: browse, query, import and export data

**[Deploy phpMyAdmin on Railway](https://railway.com/template/phpmyadmin-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/phpmyadmin-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Storage
- **Total deploys:** 2

## Template content

### phpMyAdmin https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/phpmyadmin.png

- **Source:** https://github.com/aalfath/phpmyadmin-railway-template
- **Health check:** /
- **Public domain:** Yes

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G`

## Documentation

# Deploy and Host phpMyAdmin on Railway

phpMyAdmin is a free, open-source web interface for MySQL and MariaDB, written in PHP. It lets you browse databases and tables, edit rows, run SQL, manage users and privileges, and import or export data as SQL, CSV and other formats, all from the browser.

## About Hosting phpMyAdmin

This template deploys phpMyAdmin 5.2.3 from the official Docker image, pinned by version and digest and built from a public GitHub repo, next to Railway's own MySQL database with its data on a volume. phpMyAdmin connects to MySQL over Railway's private network, and Apache serves it on a Railway HTTPS domain. Log in as `root` with the `MYSQL_ROOT_PASSWORD` shown in the MySQL service's variables: there is no default password, and passwordless logins are refused. phpMyAdmin itself stores nothing, so you can point it at another MySQL or MariaDB server later by changing `PMA_HOST` and `PMA_PORT`.

## Common Use Cases

* Browse, query and edit a MySQL or MariaDB database from the browser
* Import or export database dumps (SQL, CSV) when moving an app to Railway
* Manage MySQL users, privileges and table structure without a desktop client

## Dependencies for phpMyAdmin Hosting

* MySQL (Railway's MySQL database, included) or any MySQL / MariaDB server reachable from the project
* phpMyAdmin 5.2.3 official Docker image (`phpmyadmin:5.2.3-apache`)

### Deployment Dependencies

* phpMyAdmin documentation: https://docs.phpmyadmin.net/en/latest/
* Docker image and its variables: https://hub.docker.com/_/phpmyadmin
* phpMyAdmin releases: https://www.phpmyadmin.net/downloads/
* Template source: https://github.com/aalfath/phpmyadmin-railway-template

### Implementation Details

* Variables on the phpMyAdmin service: `PMA_HOST=${{MySQL.MYSQLHOST}}`, `PMA_PORT=${{MySQL.MYSQLPORT}}`, `PMA_BLOWFISH_SECRET` (generated) and `PORT=8080`. The deploy asks for nothing.
* To manage a database in another service, set `PMA_HOST` to that service's private domain (for example `${{MyDB.RAILWAY_PRIVATE_DOMAIN}}`) and `PMA_PORT` to its port. For several servers, use `PMA_HOSTS` and `PMA_PORTS` instead.
* `PMA_ARBITRARY=1` lets users type any server on the login page. It's off by default, because anyone with the URL could then probe hosts on your private network.
* The upload limit is 512 MB (`UPLOAD_LIMIT`). `MEMORY_LIMIT` and `MAX_EXECUTION_TIME` can be changed the same way.
* Updates: new phpMyAdmin releases are merged into the template's GitHub repo, and Railway offers them to your project as an update you choose when to apply. See the repo's `CHANGELOG.md`.

## Why Deploy phpMyAdmin on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying phpMyAdmin on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/phpmyadmin-1
