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

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

Open
JunjieW opened this issue Sep 8, 2017 · 0 comments
Open

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

JunjieW opened this issue Sep 8, 2017 · 0 comments

Comments

@JunjieW
Copy link

JunjieW commented Sep 8, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant