Edit Any Table v2.0.1

A WordPress plugin/Dashboard Widget that allows you to connect to any database and edit the contents.

This plugin is a dashboard widget to allow you to connect to any MySQL database of your choice (as long as your hosting allows) and search, edit, add and delete records in an easy to use interface. Ideal if you have built a site referencing another database. You can allow other editors/administrators of the site to alter, update, delete, add and correct entries without having to give them the full capabilities of administration tools such as phpMyAdmin.

If you find this plug-in useful then please rate it, thanks.


To install, download the .zip file from the link below, extract the contents and place the edit-any-table folder in your plugin directory (typically \\your-site\wp-content\plugins\)


Once installed go to the Dashboard->Plugins page of your WordPress site and activate the plugin:

Edit Any Table activation and settings linkNow go to the Dashboard->Settings->Edit Any Table page and enter the required details:

Edit Any Table Settings

First you’ll need to enter the host (often localhost), the name of the database you wish to connect to and a valid user name and password. Under Admin Settings you can choose to allow Administrators only to have access to the widget or Editors as well. Note: If neither of these boxes are ticked the widget will not display in your WordPress Dashboard. You can choose what to allow the Editor to do i.e. Add, Edit and/or Delete.  Leaving these boxes unchecked will give the Editor view only access.   Display Settings allows you to select the maximum number of columns to display for returned searches. Edit Any Table displays best in a single column dashboard configuration and I find five columns is a comfortable fit but adjust to suit. Here you can also select to apply a friendly name for your connected database, this can help to assure editors (who don’t have access to the settings) they are working on the correct records. Finally, if you don’t want Edit Any Table to display as a widget then you can choose to have it rendered in its own separate admin page. Tables, if you have entered your database credentials correctly and saved them, you will get a list of all the tables.  Select which ones you would like to be accessed via the admin screen.

Using Edit Any Table

Once configured return to the dashboard and you should see the following widget:

Edit Any Table WidgetNow choose a table from the drop down list and select Open Note: If there is nothing in the list then you have either not entered the correct details in your settings or there are no tables in your database.

Here you can either search or add a new record with the values you have entered. Entering no search criteria returns all the records from the table. To clear any values hit the Reset button. If you enter values that are not of the correct type or in the wrong format when adding a new record these values will be substituted for the database defaults.  Wild cards do not work in searches but by selecting the ‘Fuzzy’ check box Edit Any Table will look for the phrase or part word you entered within any string field i.e.  entering ‘Liz’ in a first name field could return Elizabeth, Liz or Lizzy. Please be aware that fuzzy searches can take a lot longer when searching large datasets. Any time you want to return to this screen just select the Open button again.Search

These are the search results for a search against the AString field using the phrase hello:

Edit Any Table search resultsNow you can edit the record contents or delete a record. To return to the search/add record screen just select Open again. That’s it, enjoy.

Known Issues / Features

  • There is no bulk update or delete
  • After saving you are not returned to the previously displayed records
  • Cannot search blobs
  • Using reserved words as column names can cause issues

Please Note

To use this plugin you need a basic knowledge of database design and setup. Modifying records can have unpredictable results so if you are at all unsure I would suggest creating a test table first before using in anger.




  • FIX Due to a change in WordPress 3.9 some PHP/MySql platforms were unable to identify the primary key. This has now been rectified.


  • Localization Added
  • Settings now allow you to choose which tables display in the widget/admin screen
  • Display as a Dashboard Widget or in a separate Admin Screen
  • Set permissions for Editor i.e. choose to allow Create, Edit and/or Delete
  • When a table has no primary key Edit and Delete are disabled


  • Fixed compatibility setting


  • Now shows columns for empty tables and allows the user to add new records.
  • Returns all records from a table if no search criteria is entered.


  • Fuzzy search added


  • Bug introduced by WordPress 3.5 (prepare statement now always requires 2 parameters) FIXED


  • Instructions link added to widget


  • Plugin homepage address changed


  • Simplified interface
  • Settings link added to the main plugin page
  • Database name displayed in widget
  • Option to apply a friendly database name


  • First release

If you have a support question or have discovered a bug in Edit-Any-Table then please post here

19 thoughts on “Edit Any Table v2.0.1

  1. Hello,

    the plugin works only partially. I am supposed to have access to edit columns (all checked for admin and editor) but I can only add new rows without being able to change existing ones.


    • Hi Ivan, this is a tough one as I think Edit Any Table is working correctly and I assume, as you can see the settings page you are Admin. I think, maybe, you need to check the permissions of the account that you are using to access your database and ensure that this account has full access.

  2. Hi,

    Fantastic Plugin, is there any way of embedding this on a webpage on my site rather than my dashboard. I need to allow access to it by a third party but not through my dashboard. I’m thinking of putting it on a password protected page. Can you help.



  3. I can open the table that I want to edit but always get “No results found” message. I have tried searching the wp_users table and wp_posts table. Both tables do have entries. Even a blind search produces nothing.

Leave a reply ...