Deploy phpMyAdmin
Web UI for MySQL and MariaDB: browse, query, import and export data
phpMyAdmin
Just deployed
MySQL
Just deployed
/var/lib/mysql
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) andPORT=8080. The deploy asks for nothing. - To manage a database in another service, set
PMA_HOSTto that service's private domain (for example${{MyDB.RAILWAY_PRIVATE_DOMAIN}}) andPMA_PORTto its port. For several servers, usePMA_HOSTSandPMA_PORTSinstead. PMA_ARBITRARY=1lets 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_LIMITandMAX_EXECUTION_TIMEcan 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.
Template Content
phpMyAdmin
aalfath/phpmyadmin-railway-templateMySQL
mysql:8