LoginSignup
7
6

More than 5 years have passed since last update.

vccwにsshでログインする / データベースのインポートとエクスポート

Last updated at Posted at 2016-08-05

sshでvagrantにログインする

$ ssh vagrant@vccw.dev

パスワードもvagrant

ってやらなくても

$ vagrant ssh

でいける...

データベースのインポート/エクスポート

// データベースのエクスポート
$ wp db export /vagrant/import.sql

// データベースのリセット
$ wp db reset --yes

// データベースのインポート
$ wp db import /vagrant/import.sql

sshでログインしていなくても下記のように書いて操作する事も出来る

$ vagrant ssh -c "wp db export /vagrant/import2.sql"
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6