Skip to content

Problem wp db export in windows #203

Closed as not planned
Closed as not planned

Description

@mehrshaddarzi

Hi @schlessera,
When I use wp db export in Cmd windows get Error:

eere

There is a Double quote that Causes an error. When I run the mysqldump command separately, it is complete:

345

I saw this function in the source and I think its condition should be cleared:

97649

Activity

  1. monirulalom commented on Oct 8, 2021

    @monirulalom

    @mehrshaddarzi I am having same issue. What is the filename of the source ?

  2. mehrshaddarzi commented on Oct 8, 2021

    @mehrshaddarzi
    Author

    @monirulalom @schlessera

    Unfortunately, WP-CLI development on Windows operating system is very weak.
    I found some different bugs from WP-CLI that are not followed at all.

    The File path:
    ~/wp-cli/php/utils.php

    You must remove the quotation mark.
    thanks

  3. monirulalom commented on Oct 8, 2021

    @monirulalom

    @mehrshaddarzi Thanks for quick response . It is now exporting but showing an warning.
    Warning: Failed to get current character set of the posts table. Reason: ERROR at line 1: Unknown command '\_'.

  4. wojsmol commented on Oct 8, 2021

    @wojsmol
    Contributor

    @mehrshaddarzi @monirulalom For WP-CLI usage on Windows I recommend WSL or similar unix-like environment.

  5. lipemat commented on Oct 14, 2022

    @lipemat
    Contributor
  6. danielbachhuber commented on Oct 28, 2022

    @danielbachhuber
    Member

    Closing in favor of wp-cli/wp-cli#5521

    We can continue the conversation there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions