Qiita Conference 2025

ミノ駆動 (@MinoDriven)

プロフェッショナルとしての成長──「問題の深掘り」が導く真のスキルアップ

7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?