vagrant suspend
自从升级到最新版本的 Laravel Homestead (v0.4.0) 后,我遇到了一个奇怪的问题,当我尝试登录 Sequel Pro 时,它会断开我的 Homestead SSH 并且除非我遵循,否则不会让我重新登录由vagrant up
.
它给我的错误信息是:
vagrant@homestead:~$ Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.
然后,当我尝试通过 Sequel Pro 登录时,我收到以下错误消息:
Connection Failed!
Unable to connect to host 127.0.0.1, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).
MySQL said: Can't connect to MySQL server on '127.0.0.1' (61)
我的 Sequel Pro 设置是:
Name: Homestead
Host: 127.0.0.1
Username: homestead
Password: secret
Port: 33060
值得参考我已经按照这篇文章设置了 Sequel Pro:http ://www.tannerhearne.com/using-sequel-pro-laravel-homestead/