Skip to content

Use of WP_CLI\Utils\run_mysql_command() broken on Windows 10 #5521

@ZencoreCZ

Description

@ZencoreCZ

Hi,
I have a problem.
'"mysql --no-defaults --execute="' is not recognized as an internal or external command,
operable program or batch file.

OS: Win10
Lastest version wp-cli

CMD Window:
`c:\wamp64\www\wordpress_cli>mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 8.0.21 MySQL Community Server - GPL

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit
Bye

c:\wamp64\www\wordpress_cli>php .\wp-cli.phar config create --dbname=xx --dbuser=root
'"mysql --no-defaults --execute="' is not recognized as an internal or external command,
operable program or batch file.

c:\wamp64\www\wordpress_cli>`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions