mysql - virtualbox虚拟机里的程序如何连接到宿主机里的数据库
天蓬老师
天蓬老师 2017-04-17 11:57:06
0
1
759

环境

  • 宿主机:ubuntu 14.04 64bit
  • virtualbox64bit
  • 虚拟机:win8.1 64 bit
  • 网络连接方案:自动地址转换:NAT

问题

  • ubuntu里安装过了mysql,不想在win 再安装一次。
  • 如何配置virtualbox的网络配置来使win下的java测试代码连接到ubuntu里的mysql?
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
左手右手慢动作

The database definitely supports network access. As long as you configure your host's mysql to allow network access, set your Internet access method to bridge, and then specify the corresponding host in the java code of the virtual machine. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template