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
- Once Running appears in the console, SSH in as root and read the MySQL admin login from
/root/app-credentials.txt. - Sign in at
http://<server IP>/phpmyadminwith those credentials. - Give each application its own database and user rather than the admin login.
- Restrict
/phpmyadminto 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.