Support » Plugin: WP Migrate DB » Non-WordPress tables exported

  • Resolved daymobrew

    (@daymobrew)


    I have a database where I store the tables for multiple WordPress installations (it is *not* WP Multisite).

    I ran WP Migrate DB Export and it exported *all* the tables in that database, not just the ones associated with the active WordPress installation (from where the Export was being run). The exported file was unnecessarily large.

    In wp-migrate-db.php the db_backup() function should probably check $table_prefix and skip those that don’t begin with that prefix.

    https://wordpress.org/plugins/wp-migrate-db/

Viewing 3 replies - 1 through 3 (of 3 total)
  • An upcoming version of the plugin fixes this exact problem, be on the look out for that release (coming soon).

    Maybe this would work:

    foreach ( $tables as $table ) {
                if ( 'VIEW' == $table[1] ) continue;
                if (strpos($table[0], $table_prefix) != 0) continue; // ADDED
                $table = $table[0];

    Oops, I posted my suggestion without refreshing the page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Non-WordPress tables exported’ is closed to new replies.