SqlServer默认端口1433未开放导致java.sql.SQLException: Network error IOException: Connection refused: connect
2014-10-29 11:48
495 查看
异常如下:
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:385)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
默认端口是1433, 也可以改为其他端口, 数据库连接工具类就需要改一下
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:385)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
默认端口是1433, 也可以改为其他端口, 数据库连接工具类就需要改一下
相关文章推荐
- SqlServer连接异常java.sql.SQLException: Network error IOException: Connection refused: connect
- 程序连接SQL Sever数据库出现:java.sql.SQLException: Network error IOException: Connection refused: connect 错误
- jdbc连接sql server 出现 java.sql.SQLException: Network error IOException: Connection refused:
- sql Connect:Network error IOException:Connection refused:connect
- Prototyper.java:98 :ERROR] Prototype java.sql.SQLException: Network error IOException: Connection
- java.sql.SQLException: Cannot create PoolableConnectionFactory (Network error IOException: 解决方法
- Network error IOException: Connection refused: connect
- jtds Network error IOException Connection refused connect
- Network error IOException: Connection refused: connect
- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:lis
- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:list
- ssm连接sqlserver时通过端口1433连接到主机的TCP/IP失败,错误“Connection refused:connect……
- jtds"Network error IOException Connection refused: connect"问题解决
- java.sql.SQLException: Listener refused the connection with the following error:ORA-12505
- Network error IOException: Connection refused: connect
- 数据库报ORA-12519;java.sql.SQLException: Listener refused the connection with the following error解决办法
- Network error IOException: Connection refused: connect
- jtds"Network error IOException Connection refused: connect"问题解决
- java.sql.SQLException: Listener refused the connection with the following error:
- Network error IOException: Connection refused: connect这是怎么回事?