Is there nice a way of setting Trellis to automatically import a mysql dump file on ‘vagrant up’?
I saw the Import Database section of [Database.yml] (https://github.com/roots/trellis/blob/082430a3ad603d58be413cbf9a54b3e2f3d83cdc/roles/wordpress-setup/tasks/database.yml) and thought I’d check if anyone’s modified this to load an existing sql-dump-*.sql.
Currently it seems like to option are:
- Manually import the database from the command line.
- Host the master database on a server and remote connect, or use WP Migrate DB Pro to handle pull requests.
- Using this method.
I’m basically just looking for a simpler way of importing a project database across multiple installations of the same project on different computers. I know this thread offers a good solution, but I’m searching for the a reliable, safe and simple approach. Avoiding potential issues like Mac OS X User ID conflicts is essential.