Skip to content

Instantly share code, notes, and snippets.

@kurudrive
Last active September 22, 2016 09:36
Show Gist options
  • Save kurudrive/27fb7c335d07f360dd52dcbc289622c4 to your computer and use it in GitHub Desktop.
Save kurudrive/27fb7c335d07f360dd52dcbc289622c4 to your computer and use it in GitHub Desktop.
vccwにsshでログインする / データベースのインポートとエクスポート ref: http://qiita.com/kurudrive/items/931d9e4484c6a685d892
$ vagrant ssh
// データベースのエクスポート
$ wp db export /vagrant/import.sql
// データベースのリセット
$ wp db reset --yes
// データベースのインポート
$ wp db import /vagrant/import.sql
$ 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