开个玩笑:The TCP/IP connection to the host XXXX, port 1433 has failed.


某客户:你们的监控软件连接不上我们的后台数据库了,报超时了,请问超时时间怎样设置的?

某人:你们用的是那个数据库的?

某客户:

Exception message: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: 
The TCP/IP connection to the host XXXX, port 1433 has failed.
Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port,
and that no firewall is blocking TCP connections to the port.".);
- nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection;
- nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host XXXX, port 1433 has failed. Error: "connect timed out.
Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".))

 某人:这是mssql server 数据库的。

某人看了一下报错,发现是连接根本创建不了,不别提超时了。

某人:你们是不是做了什么更改了?

某客户:是啊,我们对数据库做了一些调整,然后就出现这问题了。

某人:好像是TCP/IP请求给阻挡住了,你要查一下是不是 TCP/IP协议给禁止了。点击“SQL Server Configuration Manager" -> "SQL Server XXX Network Configuration -> Protocols for MSSQL SERVER -> TCP/IP,如果是被禁止了,就启动一下。

某客户:好的,我们试一下。

......

......

......

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM