Skip to main content

Adminer database manager

By Daniel Berthereau Access to Omeka database through Adminer, a one-file full-featured database management tool.
Download 3.4.18-p6.0.1

Adminer Database Manager (module for Omeka S)

New versions of this module and support for Omeka S version 3.0 and above are available on GitLab, which seems to respect users and privacy better than the previous repository.

Adminer Database Manager is a module for Omeka S that allows to view and manage a MySQL database. It uses Adminer, formerly phpMinAdmin, a one file full-featured database management tool written in PHP.

It is highly recommended to create a read-only user to use it, because it’s very easy to break a database, even for people who know the Omeka code perfectly. Anyway, see the warning below: always save your files and your database automatically and regularly, and before risky and non-risky commands.

Installation

See general end user documentation for installing a module.

The module uses the single-file version of Adminer released upstream to access the database. It is downloaded automatically via the Composer plugin sempia/external-assets.

  • Via composer (recommended)

When installed via composer (either directly or from the Omeka S root), the Adminer files are downloaded automatically into asset/vendor/ during composer install or composer update.

  • From the zip

Download the last release [Adminer.zip] from the list of releases and uncompress it in the modules directory.

  • From the source and for development

If the module was installed from the source, rename the name of the folder of the module to Adminer, go to the root of the module, and run:

composer install --no-dev

The module includes a comprehensive test suite with unit and functional tests. Run them from the root of Omeka:

vendor/bin/phpunit -c modules/Adminer/phpunit.xml --testdox
  • Upgrading Adminer

When upgrading to a new version of Adminer, the assets must be rebuilt and published as a release archive. A script is provided:

cd modules/Adminer
bash data/scripts/fetch-adminer.sh --archive

Adminer is no more compiled: the script downloads the official released single-file Adminer and Editor from the Adminer releases and adds the plugins and the designs from the source archive.

For now, the only files changed are the css of the designs, that get the selectors required by the clean urls. Everything is packaged into a distributable tar.gz in build/. The version is set with ADMINER_VERSION at the top of the script; when it is empty, the last release is used. Upload the archive as a release asset and update the url in composer.json (extra.external-assets).

  • Specific plugins and theme

The plugins that are loaded are listed in view/adminer/admin/index/adminer-plugins.phtml. To use another plugin, copy it in asset/vendor/adminer/adminer-plugins/, then add its name and its class to the two lists of this file. Note that the directory may be removed if assets are re-downloaded.

To change the default theme, copy a CSS file as asset/vendor/adminer/adminer.css. Note that it may be overwritten if assets are re-downloaded.

Usage

Just fill the config and create a read only user.

If the omeka database user has the rights to create a user and to specify privileges, the read only user will be automatically created.

Else, you can run this query in the database, modifying the user name ("readonly" here), the host (generally "localhost" or "127.0.0.1"), the password, and the database name ("omeka" here).

CREATE USER 'readonly'@'localhost' IDENTIFIED BY 'a very long password';
GRANT SELECT ON `omeka`.* TO 'readonly'@'localhost';
GRANT SHOW VIEW ON `omeka`.* TO 'readonly'@'localhost';
FLUSH PRIVILEGES;

TODO

  • [x] Remove the login page (login directly).
  • [x] Use composer package vrana. Now uses pre-compiled archive via sempia/external-assets.
  • [x] Allow to use any adminer.css theme simply by putting it in a directory.
  • [x] Give the choice to use the simplified version "adminer editor" (finalize theme).
  • [x] Fix the warning when changing theme on the first page.
  • [ ] Remove access to column password of users and api credentials.

Warning

Use it at your own risk.

It’s always recommended to backup your files and your databases and to check your archives regularly so you can roll back if needed.

Troubleshooting

See online issues on the module issues page on GitLab.

License

  • Module

This module is published under the CeCILL v2.1 license, compatible with GNU/GPL and approved by FSF and OSI.

This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software. You can use, modify and/ or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL "http://www.cecill.info".

As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, users are provided only with a limited warranty and the software’s author, the holder of the economic rights, and the successive licensors have only limited liability.

In this respect, the user’s attention is drawn to the risks associated with loading, using, modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean that it is complicated to manipulate, and that also therefore means that it is reserved for developers and experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the software’s suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions as regards security.

The fact that you are presently reading this means that you have had knowledge of the CeCILL license and that you accept its terms.

  • Library Vrana/Adminer

The library Adminer is released under Apache or GPL v2. Adminer themes are released the same.

Copyright

  • Copyright Daniel Berthereau, 2019-2026 (see Daniel-KM on GitLab)

Adminer: Copyright 2007-, Jakub Vrana Copyright 2016-, Aleksey M. (theme)

Version Released Minimum Omeka version
3.4.18-p6.0.1August 17, 2026 [info]^3.1.0 || ^4.0.0
3.4.17-p6.0.0August 10, 2026 [info]^3.1.0 || ^4.0.0
3.4.16-p5.5.1July 20, 2026 [info]^3.1.0 || ^4.0.0
3.4.16-5.4.4July 13, 2026 [info]^3.1.0 || ^4.0.0
3.4.16-5.4.3July 06, 2026 [info]^3.1.0 || ^4.0.0
3.4.15-5.4.2May 14, 2026 [info]^3.1.0 || ^4.0.0
3.4.14-5.4.2April 06, 2026 [info]^3.1.0 || ^4.0.0
3.4.13-5.4.2February 23, 2026 [info]^3.1.0 || ^4.0.0
3.4.12-5.4.2February 16, 2026 [info]^3.1.0 || ^4.0.0
3.4.11-5.4.1February 09, 2026 [info]^3.1.0 || ^4.0.0
3.4.10-5.4.1January 05, 2026 [info]^3.1.0 || ^4.0.0
3.4.9-5.4.1September 01, 2025 [info]^3.1.0 || ^4.0.0
3.4.8-5.3.0May 12, 2025 [info]^3.1.0 || ^4.0.0
3.4.7-5.2.1April 21, 2025 [info]^3.1.0 || ^4.0.0
3.4.6-5.1.0March 24, 2025 [info]^3.1.0 || ^4.0.0
3.4.5-4.8.4January 06, 2025 [info]^3.1.0 || ^4.0.0
3.4.4-4.8.4April 22, 2024 [info]^3.1.0 || ^4.0.0
3.4.3-4.8.1June 12, 2023 [info]^3.1.0 || ^4.0.0
3.4.2-4.8.1January 09, 2023 [info]^3.1.0 || ^4.0.0