I am running Laravel on Vagrant and I am trying to connect Sequel Pro.
I have just started using Vagrant, I have followed a few tutorials on connecting to Sequel Pro how
One can use vagrant port
to check the current port forwarding (in case one has several vagrant boxes).
Also if the case is more than one vagrant box the issue could be that a new ssh key must be added to the host's .ssh/known_hosts
by:
commenting the first vagrant box host in the host's .ssh/known_hosts
;
adding the second vagrant box host through the Sequel Pro test connection dialog;
uncommenting the first vagrant box host in the host's .ssh/known_hosts
.
So both vagrant boxes (each one with it's own key) are now known.
For me, the vital part was using 0.0.0.0 as MySQL host instead of 127.0.0.1. Everything else is business as usual (using SSH). This works for me:
Your connection to your Vagrant box has to be made via SSH. So if you have connected before, and have made any major changes to your Vagrant box (such as a destroy/rebuild), you may have a new private key and need to refresh your IP address record in ~/.ssh/known_hosts
. To do that, open the file in vim and just delete the line that starts with your vagrant box IP address.
Below are my screenshot for vagrant connected using mysql workbench from MAC