hi there,
because of some really strange things happening where i lost a complete database, i know have to do the following:
i have a clone of my “local-by-flywheel” machine in virtualbox
i can start that clone in virtualbox and get presented with a terminal window logged in as root@local-by-flywheel
in the terminal i want to get to one of my local machines
and there to the database, to restore it (maybe by exporting it as sql files)
my question is: how do i get to the database this way?
(note: this is the only way because sadly i can’t start the vm the “normal” way (starting local) because there is and was a known error with tls certificates not getting fixed and the docker daemon not starting. i tried a lot of things posted in the forums here, but nothing worked)
Logging in requires an SSH key. There isn’t a default root password for the VM.
Any commands mentioned below should be ran in Terminal (or your preferred terminal) on macOS and Cmd.exe on Windows.
Here’s what I’d do in this case:
1. Create a new Docker Machine.
The command will look something like DOCKERMACHINEPATH create recovery-vm --driver virtualbox
Replace DOCKERMACHINEPATH with the appropriate path below.
macOS: "/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine"(there’s a space in this path so the quotes are required)