db-command
db-command copied to clipboard
Problem `wp db export` in windows
Hi @schlessera,
When I use wp db export
in Cmd windows get Error:
There is a Double quote that Causes an error. When I run the mysqldump
command separately, it is complete:
I saw this function in the source and I think its condition should be cleared:
@mehrshaddarzi I am having same issue. What is the filename of the source ?
@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
@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 '\_'.
@mehrshaddarzi @monirulalom For WP-CLI usage on Windows I recommend WSL or similar unix-like environment.
I submitted pulls request to resolve this issue:
- https://github.com/wp-cli/db-command/pull/231
- https://github.com/wp-cli/wp-cli/pull/5689
Closing in favor of https://github.com/wp-cli/wp-cli/issues/5521
We can continue the conversation there