Skip to content

Error: Unable to get the list of tables to be exported #51

@thewizard1002

Description

@thewizard1002

When issuing this command (wp mu-migration export all site.zip --plugins --themes --uploads) on any site I have tried, I get the following
Exporting site meta data...
Exporting users...
Exporting tables
Error: Unable to get the list of tables to be exported

A CSV file and JSON file are created and have a lot of data.
wp db export does export the whole database with no problem
wp db tables lists all of the WP tables

replacing $tables = \WP_CLI::launch_self( with $tables = \WP_CLI::runcommand( on line 104 of class-mu-migration-export.php lets it continue if you manually specify the tables but then I get
"Something went wrong while trying to export the database" but an .sql file is created with all of the tables and data.

I tried using $export = \WP_CLI::runcommand('db export', array('return' => true)); that I found in another post with that error message but I still get the same error.

IIS/My SQL 5.6/PHP 7.1.11

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions