镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Hide DB #422

Description

@joaopinto14

Is it possible to use environment variables to hide db?

Activity

  1. williamdes commented on Aug 3, 2023

    @williamdes
    Member

    For now there is no ENV variable that does that, it would need to be added to https://github.com/phpmyadmin/docker/blob/master/config.inc.php

  2. qeepcologne commented on Oct 18, 2023

    @qeepcologne

    you can add config.user.inc.php
    example:

    <?php
    $i = 1;
    $cfg['Servers'][$i]['ssl'] = true;
    $cfg['Servers'][$i]['hide_db'] = 'information_schema|performance_schema'; 
    $cfg['MaxNavigationItems'] = 999;
    $cfg['NavigationWidth'] = 360;
    $cfg['ExecTimeLimit'] = 3600;
    ?>
  3. rombie18 commented on Sep 19, 2025

    @rombie18

    EDIT: This was found to not be the cause of the issue.

    Just a warning for any user ( spent more than 3 hours debugging this), the closing ?> is very important.

    <?php
    $cfg['Servers'][1]['hide_db'] = 'information_schema|performance_schema'; 
    ...
    ?>
  4. williamdes commented on Sep 19, 2025

    @williamdes
    Member

    Just a warning for any user ( spent more than 3 hours debugging this), the closing ?> is VERY important.

    // <-- Must be present!

    this is weird, can you share your docker compose ?

  5. rombie18 commented on Sep 19, 2025

    @rombie18

    I just found out the issue is not related to the closing ?> but rather has to do with the database initialization. I get an error only on the first boot of the container. If I stop and start everything works as normal. I guess this caused confusion by removing and adding the ?> at the same time..

  6. williamdes commented on Sep 19, 2025

    @williamdes
    Member

    <?php is often missing when users report this, maybe you added it at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions