我使用Vagrant挂载了一台新的VirtualBox虚拟机,在该虚拟机中安装了Mysql Server。如何在虚拟机外连接到该服务器?我已经在Vagrantfile中转发了3306端口,但是当我尝试连接mysql服务器时,它会返回错误:“reading initial communication packet”。
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0