Last active
August 3, 2018 20:48
-
-
Save mgratch/c72a13788f83428c34cb479ec3ee723d to your computer and use it in GitHub Desktop.
insert db that is split into multiple tables. Using a for loop and wp-cli. This will work for parts to but you might need to run to ensure all tables are successfully created.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// insert db that is split into multiple parts | |
for f in /sql/*.sql; \ | |
do wp db import $f; \ | |
done; \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment