Last active
September 22, 2016 09:36
-
-
Save kurudrive/27fb7c335d07f360dd52dcbc289622c4 to your computer and use it in GitHub Desktop.
vccwにsshでログインする / データベースのインポートとエクスポート ref: http://qiita.com/kurudrive/items/931d9e4484c6a685d892
This file contains 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
$ ssh [email protected] |
This file contains 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
$ vagrant ssh |
This file contains 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
// データベースのエクスポート | |
$ wp db export /vagrant/import.sql | |
// データベースのリセット | |
$ wp db reset --yes | |
// データベースのインポート | |
$ wp db import /vagrant/import.sql |
This file contains 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
$ vagrant ssh -c "wp db export /vagrant/import2.sql" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment