注册 登录
编程论坛 J2EE论坛

j2EE连接数据库出错(sos)

犹豫 发布于 2007-12-08 11:01, 1270 次点击
总是报
C an't open a socket on localhost1433. Check host and port number and make sure the security manager allows this connection. Youcan slso try running the SocketApplet( refused:connect).

我的数据库已经开了
5 回复
#2
无缘今生2007-12-09 13:12
错误信息都已经告诉你怎么做了呀.

实在不行请把代码帖出来.
#3
llpNo12007-12-10 09:25
把代码贴出来了
把代码贴出来,问题好解决一点啊
#4
犹豫2007-12-19 16:01
并不是代码什么地方错误了 我放在别的地方运行是可以运行的!!!
#5
犹豫2007-12-19 16:13
只要我一用那个SQL的驱动就会报这个借
在STRUTS中也是这个错误
#6
marer2007-12-19 17:51
典型的数据库Socket错误,你可以试一下把数据库的端口号改一下。再不行就重装一下数据库试试
1