Connect to MySQL on Vagrant instance with Sequel Pro

前端 未结 10 1630
囚心锁ツ
囚心锁ツ 2021-02-02 18:03

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

相关标签:
10条回答
  • 2021-02-02 18:57

    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:

    1. commenting the first vagrant box host in the host's .ssh/known_hosts;

    2. adding the second vagrant box host through the Sequel Pro test connection dialog;

    3. 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.

    0 讨论(0)
  • 2021-02-02 18:58

    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:

    0 讨论(0)
  • 2021-02-02 19:07

    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.

    0 讨论(0)
  • 2021-02-02 19:08

    Below are my screenshot for vagrant connected using mysql workbench from MAC

    0 讨论(0)
提交回复
热议问题