Skip to content

Introduction make me confused #3

@alexlii1971

Description

@alexlii1971

Hello,

Firstly, thanks for your great work.

I read this article, and I found there are lost different upon how to use it:

How can I find orphaned Multisite tables

Run wp multisite-db list from the command-line
How can I delete orphaned Multisite tables

Run wp multisite-db delete --force from the command-line

but in that article, there are different ways:

In order to figure out which sites are safe to remove from, we first need a list of all subsites. This can gather by running the following wp-cli command wp site list --format=ids which will output something like 1 2 4 7.
Next we need a list of actual upload folders within multisite. On legacy multisite networks this is found under /wp-content/blogs.dir/ for modern networks /wp-content/uploads/sites. From the terminal we can grab a full list by running ls ~/Backup/wp-content/blogs.dir/ which will return something like this:
1 2 3 4 5 6 7
With can take those IDs and parse them using a bash script remove_orphaned_mu_uploads.sh

Running remove_orphaned_mu_uploads.sh will output the following: 3 5 6 which are orphaned upload directories. These folders are safe to delete.

would you please clear upon how to use it?

Secondly,

I already activated it:
http://prntscr.com/lluhb9

but, there is errors show up:

root@101:# wp multisite-db list
Warning: No WordPress install found. If the command 'multisite-db list' is in a plugin or theme, pass --path=path/to/wordpress.
Error: 'multisite-db' is not a registered wp command. See 'wp help' for available commands.
root@101:
#

does it support wordpress 4.9.8?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions