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.
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 folder
File 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 add new 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.