简体   繁体   English

是否可以在Virtualbox中将Java Web应用程序连接到SQL Server?

[英]Is it possible to connect a Java web app to SQL Server in Virtualbox?

I have a Mac running OS X 10.9 with Java 1.7 using Eclipse Luna. 我有一台使用Eclipse Luna和Java 1.7一起运行OS X 10.9的Mac。 I also have MySQL and MySQL Workbench. 我也有MySQL和MySQL Workbench。 However, my programming subject only teaches JDBC using SQL Server. 但是,我的编程主题仅讲授使用SQL Server的JDBC。 I don't mind learning how to use JDBC with MySQL as the DBMS. 我不介意学习如何将JDBC与MySQL一起用作DBMS。 But I was wondering if I can connect my app to a virtual machine running Windows 7 with SQL Server 2008 on Virtualbox? 但是我想知道是否可以将我的应用程序连接到在Virtualbox上使用SQL Server 2008运行Windows 7的虚拟机?

TL;DR: Java web app (Mac) <---connect---> SQL Server (Virtualbox Windows 7), possible? TL; DR:Java Web应用程序(Mac)<---连接---> SQL Server(Virtualbox Windows 7),可以吗?

Of curse you can. 当然可以。 You will have to configure some port forwarding from your VirtualBox and maybe Windows itself. 您将必须从VirtualBox甚至Windows本身配置一些端口转发。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM