bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 90 forks source link

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

Open JunjieW opened 7 years ago

JunjieW commented 7 years ago

Description

https://github.com/bradp/vv/blob/05349313e58ed8d62526cfe4000d71bad2dbbff5/vv#L998

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.