可以在Vagrant框内连接主机的MySQL服务器吗?我正在运行一个RoR vagrant box,但我需要连接到主机数据库服务器.
有帮助吗?
堆栈溢出有两个线程,超级用户有另一个可能帮助您完成此操作.以下链接.
如何从vagrant virtualbox机器连接主机PostgreSQL
https://superuser.com/questions/310697/connect-to-the-host-machine-from-a-virtualbox-guest-os/310745#310745
如果您的设置正确,可以执行您要实现的操作.