db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Nguyen" <franktngu...@sbcglobal.net>
Subject FW: java.sql.SQLException: Unable to connect to any hosts due to exception: Connection rejected
Date Wed, 03 Mar 2004 19:04:22 GMT

Hi,

I kept getting the JDBC connection problem with mysql when running 'ant -f
build-torque.xml create-db'. I tried both localhost and remote. I was able
to connect using 'mysql -h 'localhost|remotename' -u root'. There must be
something wrong, either with the jdbc driver, or the config files
(attached). I have mysql-connector-java-3.0.9-stable-bin.jar installed under
/torque/lib and j2sdkx.x.x/jre/lib/ext. Did I miss something else ?

Thanks,

Frank Nguyen


BUILD FAILED
file:D:/torque-gen-3.1/build-torque.xml:292: java.sql.SQLException: Unable
to
nnect to any hosts due to exception: java.net.ConnectException: Connection
re
ed: connect
        at
org.apache.tools.ant.taskdefs.JDBCTask.getConnection(JDBCTask.java
2)
        at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:358)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Mime
View raw message