selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

phpMyAdmin logo

Self-host phpMyAdmin

RELEASE_5_2_3

Web-based MySQL and MariaDB administration panel

ReleaseOpen SourceGPL-2.0
Docker ComposeCompose file & guide
docker compose up -d
Updatedlast year
LanguagePHP
Setup difficultyEasy
Stars
7 975
Port
80 (Port the phpMyAdmin Docker image serves its web interface on (mapped to 8080 in the documented examples).)
Requires
MySQL, PHP, Web server (Apache, nginx, IIS)
Docker
phpmyadmin/phpmyadmin
Server monitor screenRelation designer screenUser management screenServer configuration advisor screen

What is phpMyAdmin?

phpMyAdmin alternatives

Should you self-host phpMyAdmin?

phpMyAdmin scores 74/100 on selfhost.directory (how scoring works) and ranks #8 of 41 in Database Management. It has 7 975 GitHub stars, +29 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is GPL-2.0-licensed and written mostly in PHP.

Its closest alternative on selfhost.directory is supabase (90/100, 114 693 stars). It scores higher overall, so compare the two before you pick. See phpMyAdmin vs supabase side by side.

Features

  • Arbitrary server login
  • Data Import and Export
  • GUI customization / themes
  • Login CAPTCHA protection
  • Multi-server administration
  • Query-by-example
  • Query history and console
  • Schema diagrams
  • Server maintenance and configuration advisor
  • SQL execution and bookmarking
  • Stored procedures, functions, events and triggers
  • Theme Support
  • Two-factor authentication
  • User and privilege management
  • Web-based database administration

phpMyAdmin README

How to install phpMyAdmin

Install phpMyAdmin with Docker Compose

Environment variables
PMA_ARBITRARY
docker compose up -d

Uses the docker-compose.yml from https://github.com/phpmyadmin/docker, which runs phpMyAdmin with the arbitrary-server option.

How to configure phpMyAdmin

  • $cfg['Servers'][$i]['auth_type']cookieAuthentication type used for the server entry.

    values: config, cookie, http, signon

  • $cfg['Servers'][$i]['host']localhostThe hostname or IP address of the database server.
  • $cfg['blowfish_secret']Encryption key for cookie authentication; must be a 32-bytes long string of random bytes.
  • $cfg['AllowArbitraryServer']falseIf enabled, allows you to log in to arbitrary servers.

    values: true, false

  • $cfg['ThemeManager']trueEnables user-selectable themes.

    values: true, false

phpMyAdmin releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

When using HTTP authentication, a user who logged out can not log in again in with the same nick - what to do?

This is a limitation of the HTTP authentication protocol; closing all open browser windows lets the user log in again.

How can I reduce the installed size of phpMyAdmin on disk?

Unused locales, themes, docs, setup, examples and some bundled vendor libraries can be deleted, though the docs warn this can confuse users when features go missing.

Why can't I display the structure of my table containing hundreds of columns?

The PHP memory_limit is too low; raise it in php.ini.

How can I prevent robots from accessing phpMyAdmin?

Add .htaccess rewrite rules that block known scanner and crawler user agents; it is easy to circumvent but stops at least some bots.

Can I use phpMyAdmin on a server on which Suhosin is enabled?

Yes, but Suhosin's default limits can break operations on tables with many columns, so request/post/get limits usually need raising.

Which Database versions does phpMyAdmin support?

MySQL 5.5 and newer and MariaDB 5.5 and newer are supported; older servers need older phpMyAdmin releases from the downloads page.

More in Database Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…