阅读:77954 回复:2
.S
.S
8

帖子

26

跟帖

148

积分

中级榴莲
中级榴莲

数据库超时

楼主#
更多 发布于:2018-11-26 19:44
在linux系统下部署java版的数据库账户密码验证都是正确的但是显示数据库连接超时

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.0.102, port 1433 has failed. Error: "connect timed out. 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.".
 at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
 at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)
 at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)
 at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491)
 at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309)
 at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
 at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
 at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)
 at java.sql.DriverManager.getConnection(DriverManager.java:571)
 at java.sql.DriverManager.getConnection(DriverManager.java:215)
 at OThinker.Common.Data.Database.SqlExecutor.CheckConnection(SqlExecutor.java:829)
 at OThinker.Common.Data.Database.CommandFactory.CheckConnection(CommandFactory.java:126)
 at OThinker.H3.Entity.EngineChannel.CheckReady(EngineChannel.java:59)
 at OThinker.H3.Entity.EngineChannel.OnStart(EngineChannel.java:82)
 at OThinker.EngineStartup.main(EngineStartup.java:64)
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
1楼#
发布于:2018-11-26 19:50
看日志记录是端口号没有开啊
.S
.S
8

帖子

26

跟帖

148

积分

中级榴莲
中级榴莲
2楼#
发布于:2018-11-26 20:11
武汉技术支持团队:看日志记录是端口号没有开啊回到原帖
但是我可以连接到这个数据库啊
游客

返回顶部