phpmyadmin / phpmyadmin/phpmyadmin

hide_db seems to not work

Open
#16,506 15 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

affects/5.2 affects/6.0 Bug confirmed/5.2 confirmed/6.0
Dominant language
PHP
Stars
7.9k
Forks
3.6k
Avg merge
4d 18h
Merged PRs (30d)
36

Description

The hide_db configuration directive seems to have no effect.

I have set $cfg['Servers'][$i]['hide_db'] = 'sakila'; and yet I still see the sakila database listed in the navigation pane. I've also tried $cfg['Servers'][$i]['hide_db'] = '^(sakila|gis)$'; again with no luck.

I've tested with MariaDB 10.3 and MySQL 8.0, and phpMyAdmin 4.9.1 and 5.1.0-dev from master.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the hide_db configuration directive is applied to the navigation pane, reproducing the issue with the sakila value and the provided regular expression. Done means the sakila database is omitted from the navigation pane for the reported MariaDB and MySQL configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, mysql, php
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.