Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
El Capitan上的Laravel Homestead/mysql无法连接_Mysql_Laravel_Vagrant_Osx Elcapitan - Fatal编程技术网

El Capitan上的Laravel Homestead/mysql无法连接

El Capitan上的Laravel Homestead/mysql无法连接,mysql,laravel,vagrant,osx-elcapitan,Mysql,Laravel,Vagrant,Osx Elcapitan,自从升级到El Capitan,我就无法在Homestead实例上连接到mysql。这在MacBookAir和MacBookPro上都会发生,在这两台机器上,我都将Vagrant、VirtualBox和Homestead更新为最新版本 我已经删除了我的.vagrant-d目录,并销毁/重新安装了我的宅地箱 我尝试过使用SQLPro和mysql workbench——两者都无法连接 SQLPro的错误是: Unable to connect to host 127.0.0.1, or the re

自从升级到El Capitan,我就无法在Homestead实例上连接到mysql。这在MacBookAir和MacBookPro上都会发生,在这两台机器上,我都将Vagrant、VirtualBox和Homestead更新为最新版本

我已经删除了我的
.vagrant-d
目录,并销毁/重新安装了我的宅地箱

我尝试过使用SQLPro和mysql workbench——两者都无法连接

SQLPro的错误是:

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' (4)
从命令行,我也无法连接,出现以下错误:

➜  ~  mysql -h 127.0.0.1 -u homestead -psecret -P 33060
Warning: Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0
这个问题基本上扼杀了我将近一周的工作效率。我已经尝试了我能想到的一切。我的SSH密钥很好,因为我可以SSH到Homestead框中,我知道mysql正在那里运行,因为我可以从SSH会话中连接到mysql

有人知道如何连接或至少排除故障吗


谢谢

编辑
/etc/mysql/my.cnf
并添加配置选项
跳过名称解析
成功了