---
title: "phpMyAdmin and MySQL on a VPS · CloudSat"
description: "Deploy MySQL with phpMyAdmin on CloudSat: browse tables, run SQL, import dumps and manage users in the browser, with the database on your own server."
url: https://cloudsat.io/apps/deploy-phpmyadmin-and-mysql
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Databases](https://cloudsat.io/apps/category/database-servers)

# phpMyAdmin and MySQL on a VPS

This stack installs MySQL Community Server with phpMyAdmin, the PHP web interface for browsing tables, running SQL, importing dumps and managing users.

[Deploy phpMyAdmin and MySQL](https://dash.cloudsat.io/console/deploy?image=app%3Aphpmyadmin-and-mysql&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About phpMyAdmin and MySQL

phpMyAdmin is a GPL-2.0 web application in PHP for administering MySQL and MariaDB. From the browser you edit rows, run queries, design tables, manage accounts and privileges, and import or export data as SQL, CSV and other formats.

Here it is paired with MySQL Community Server on one CloudSat VPS, so a small project gets a database and a console in a single deploy. The console runs on the same machine, so port 3306 can stay closed to the internet.

phpMyAdmin answers at `http://<server IP>/phpmyadmin`, and the installer leaves a MySQL administrator login in `/root/app-credentials.txt`.

## What you get with phpMyAdmin and MySQL

- Browse, search and edit table data
- SQL editor with bookmarks and query history
- Import and export in SQL, CSV and other formats
- Accounts and privileges managed through forms
- Designer view for table relations

## phpMyAdmin and MySQL use cases

- Back a WordPress or PHP app with a database you can inspect
- Load a client's SQL dump and check it before launch
- Give a developer table access without a desktop client

## After you deploy phpMyAdmin and MySQL

1. Once **Running** appears in the console, SSH in as root and read the MySQL admin login from `/root/app-credentials.txt`.
2. Sign in at `http://<server IP>/phpmyadmin` with those credentials.
3. Give each application its own database and user rather than the admin login.
4. Restrict `/phpmyadmin` to your IP and add HTTPS before you log in from public networks.

## phpMyAdmin and MySQL ports

Open these in your firewall if you use one: `80/tcp phpMyAdmin over HTTP`, `443/tcp phpMyAdmin with TLS, after setup`, `3306/tcp MySQL (keep private)`.

## phpMyAdmin and MySQL FAQ

### Why can't I log in to phpMyAdmin as root?

On Ubuntu, MySQL's `root` account authenticates through the local socket, so password logins from phpMyAdmin fail. Use the administrator from the credentials file, or create a dedicated user.

### Can phpMyAdmin manage another MySQL server?

Yes. Add the host as an extra server entry in phpMyAdmin's `config.inc.php` and the login page offers a choice. On the remote side, open 3306 only to this server's IP.

**Disclaimer.** The phpMyAdmin and MySQL project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like phpMyAdmin and MySQL

[All apps in Databases](https://cloudsat.io/apps/category/database-servers)

- [MySQL](https://cloudsat.io/apps/deploy-mysql): Databases MySQL Community Server is the open-source relational database behind WordPress, Drupal and many web stacks, with InnoDB transactions and built-in replication.
- [MariaDB](https://cloudsat.io/apps/deploy-mariadb): Databases MariaDB is an open-source relational database that began as a fork of MySQL, keeping its protocol and tools while adding engines and features.
- [Adminer](https://cloudsat.io/apps/deploy-adminer): Databases Adminer is a full database manager in one PHP file: browse tables, run SQL, edit rows and export dumps for MySQL, MariaDB, PostgreSQL, SQLite and more.
- [LAMP](https://cloudsat.io/apps/deploy-lamp): Web hosting The LAMP app installs Apache, MariaDB and PHP with the lamp.sh script, plus a `lamp` command that adds virtual hosts and databases.
- [Apache CouchDB](https://cloudsat.io/apps/deploy-couchdb): Databases Apache CouchDB stores JSON documents behind an HTTP API and replicates between servers, browsers and phones. The backend of choice for offline-first apps.
- [Apache Kafka](https://cloudsat.io/apps/deploy-apache-kafka): Databases Apache Kafka is a distributed event streaming platform: durable, partitioned logs that producers write to and consumers read at their own pace.
