AdminerTablesFuzzySearch
is a plugin for Adminer that add a fuzzy search function on current DB tables. This is really useful when working on hudge databases with tons of tables.
- use 'F' access key to give focus to fuzzy search input. Depending on browser, it could be alt-shift-F or other key combination
- type fuzzy name of table (without spaces)
- use keyboard keys to select correct match
- press enter to open selected table (or shift-enter to open it into a new tab)
-
Download and install Adminer tool
-
Create plugins folder next to adminer.php
-
Download
plugins.php
, this file is needed to load plugins; and place it into plugins folder -
Download
adminer-tables_fuzzy_search.php
and place it into plugins folderFile structure will be:
- adminer.php - plugins - plugin.php - adminer-tables_fuzzy_search.php - ... (other plugins you've already installed)
-
Edit or create
index.php
file next to adminer.php and configure plugins and addnew AdminerTablesFuzzySearch()
to $plugins array :
<?php
function adminer_object()
{
// required to run any plugin
include_once "./plugins/plugin.php";
// autoloader
foreach (glob("plugins/*.php") as $filename) {
include_once "./$filename";
}
$plugins = array(
// specify enabled plugins here
new AdminerTablesFuzzySearch(),
);
return new AdminerPlugin($plugins);
}
// include original Adminer or Adminer Editor
include "./adminer.php";
Final file structure will be:
- adminer.php
- index.php
- plugins
- plugin.php
- adminer-tables_fuzzy_search.php
- ...
All fuzzy search is done with the excellent Ben Ripkens's fuzzy.js library.