自从升级到最新版本的Laravel Homestead(v0.4.0)后,我遇到了一个奇怪的问题,当我尝试登录Sequel Pro时,它会断开我的Homested SSH,除非我这样做,否则不会让我重新登录
vagrant suspend
然后
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/