Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto

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.

1 GBMinimum memory
Ubuntu 24.04 LTSBase image
80/tcp, 443/tcp, 3306/tcpPorts
GPL-2.0 (phpMyAdmin and MySQL Community Server)License

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.

phpMyAdmin and MySQL on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back