有人知道如何通过MysqlWorkBench连接VB MySQL吗?我可以通过终端登录虚拟盒子,但不能通过MySqlWorkBench连接。我也可以在vb上ping谷歌,ifconfig给了我10.0.2.15的地址,当我在MysqlWorkBench中输入它时,我得到了错误:
Failed to Connect to MySQL at 127.0.0.1:3306 through SSH tunnel at 10.0.2.15:2222 with user davs我的Virtual box使用2222端口进行连接。另外,当我尝试使用ip 127.0.0.1进行连接时
Failed to Connect to MySQL at 127.0.0.1:3306 through SSH tunnel at 127.0.0.1:2222 with user davs Failed to Connect to MySQL at 127.0.0.1:3306 through SSH tunnel at 127.0.0.1:2222 with user davs任何建议都会很有帮助,谢谢。
发布于 2013-02-26 12:01:15
这看起来像是一个老问题,但由于我刚刚遇到了这个问题,以下是我在MysqlWorkbench上使用的设置,以使一切在我的mac上运行:
服务器连接方法:标准TCP/IP over SSH 3306
您的设置可能略有不同,但关键部分是使用不安全的私钥,如前所述。
发布于 2012-04-20 20:45:22
使用位于:~/.vagrant.d/insecure_private_key的“不安全私钥”
https://stackoverflow.com/questions/8993899
复制相似问题