Skip to content
This repository was archived by the owner on Jun 30, 2020. It is now read-only.
This repository was archived by the owner on Jun 30, 2020. It is now read-only.

db_init doesn't work with --blank-with-db option #361

@JunjieW

Description

@JunjieW

Description

vv/vv

Line 998 in 0534931

echo " $db_init"

Since using --blank-with-db option, wp-cli actually won't work since the working directory is not a WordPress installation.

Solution:

Use mysql command to execute .sql file, as long as the .sql file is a mysqldump.

I will create a pull request later for this issue.

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