dav*_*avs 2 php virtualbox zend-framework vagrant
有没有人知道通过MysqlWorkBench连接到VB MySQL.我可以通过终端登录虚拟机,但我无法通过MySqlWorkBench连接它.另外我可以在vb上ping google,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
Run Code Online (Sandbox Code Playgroud)
我的虚拟框使用端口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
Run Code Online (Sandbox Code Playgroud)
任何建议都会有所帮助,谢谢.
小智 14
这看起来像一个老问题但是因为我遇到了问题,这里是我在MysqlWorkbench上使用的设置,以便在我的mac上运行一切:
您的设置可能略有不同,但关键部分是使用前面提到的不安全的私钥.