It is similar to Docker, but Vagrant is basically a wrapper for a vm. Docker is some kinda magic I don't fully understand yet, but if you have more experience with that, I'm sure you could do the same thing with a container.
Basically, you would open up your MySQL instance to remote connections and whitelist your own IP connection.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.