2013-07-02 244 views
0

我对MySQL服务器是全新的,但擅长于Java!我知道如何使用Java连接MySQL服务器。最近,我为我制作了一个简单的小型MySQL服务器(测试)应用程序。它只是为了我的知识!我已成功连接到数据库并成功在我的Java应用程序中使用INSERT和SELECT语句。无法访问并连接到MySQL服务器数据库


问题是我的应用程序只运行在安装了SQL Server 2008R2的笔记本电脑上!我刚查了我的另一台笔记本电脑我的应用程序,它说以下错误:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP 
connection to the host localhost, port 1433 has failed. Error: 
"Connection refused: connect. Verify the connection properties. 
Make sure that an instance of SQL Server is running on the host 
and accepting TCP/IP connections at the port. Make sure that TCP 
connections to the port are not blocked by a firewall. 

我已经试过此链接到目前为止,还没有成功的我仍然无法访问我的数据库我的另一台机器上!

 msdn.microsoft.com/en-us/library/ms175043.aspx 

从一个答案我也尽我所能!

  stackoverflow.com/a/12430561/2496503 

从这个答案我已经知道我的SQL Server网络配置(32位)没有表现出任何细节/在这里上面的回答提到的选项是附后的快照! enter image description here

请告诉我,如果它是普通的,但它没有显示任何选项!否则我的SQL服务器没有正确安装请帮助我给我只是提示我会感谢你!

回答

0

执行这些步骤的TCP/IP网络配置直到第6步,你的问题将得到解决。

[http://www.visual-paradigm.com/support/articles/solve-sql-server-connection-problem.jsp] [1]