WP Migrate DB
[resolved] exclude the "users" table (2 posts)

  1. IeIouch
    Posted 2 years ago #


    Is it possible to add the possibility to exclude the "users" table from the export of the database in a next update ?

    This would allows not to send in preprod (or prod) the users ID/passwords used in local.

    A checkbox added in the back office and a little condition on the export would do the trick.


    Example: without configuration in Back Office

    foreach ($tables as $table) {
            if($table[0] != $table_prefix."users"){ // new : accepts all tables except users
                 if ( 'VIEW' == $table[1] ) continue;
                 $table = $table[0];
     			// Increase script execution time-limit to 15 min for every table.
     			$this->stow("# " . sprintf(__('Table: %s','wp-migrate-db'),$this->backquote($table)) . "\n");
     			$this->stow("# --------------------------------------------------------\n");
            } // new end if


  2. Brad Touesnard
    Plugin Author

    Posted 2 years ago #

    The ability to select which tables to export (along with lots of other features) will be available in the Pro version to be released in the next few weeks. Here's a sneak peek of the feature: https://dl.dropbox.com/u/4113520/wpmdb-select-tables.png

    If you're interested in being notified when it's released, you can subscribe to the mailing list: http://bradt.ca/wpmdb-subscribe-form.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Migrate DB
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.