TOMCAT的JDBC问题?# Java - 爪哇娇娃
a*r
1 楼
我在WINXP下装了TOMCAT4.1.31
想连接系里UNIX下的MYSQL(server version: 3.23.52)
应该用那个MYSQL.JAR文件?
我试了mm.mysql-2.0.14,结果报错:
Cannot connect to MySQL server on db.itlabs.umn.edu:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException)
换mysql-connector-java-3.1.7-bin.jar
结果说我:
Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused:
connect STACKTR
想连接系里UNIX下的MYSQL(server version: 3.23.52)
应该用那个MYSQL.JAR文件?
我试了mm.mysql-2.0.14,结果报错:
Cannot connect to MySQL server on db.itlabs.umn.edu:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException)
换mysql-connector-java-3.1.7-bin.jar
结果说我:
Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused:
connect STACKTR