Code Element Vi

Import Vagrant Database using WP-CLI

Replace:

example.com: with your domain

# Login into vagrant
$ vagrant ssh

# Navigate to your WordPress site
$ cd ../../srv/www/example.com/current/

# Make sure db.sql is in same folder as Vagrantfile, 
# then use wp-cli to import your database
$ wp db import /vagrant/db.sql