db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsh Wanath" <pa...@datumsoftware.com>
Subject SQL Exception when using torque
Date Tue, 12 Aug 2003 16:21:21 GMT
I am using torque and mysql. I had written some code which is working fine.
I passes this code to someone and it isnt working.

When i do (which is trying to create a database)

">>>ant -f build-torque.xml create-db"

i get the following error

"java.sql.SQLException: Cannot connect to MySQL server on Is
there a MySQL server running on the machine/port you are trying to connect
to? (java.net.ConnectException)"

My properties file looks like

torque.database.createUrl = jdbc:mysql://
torque.database.buildUrl = jdbc:mysql://${torque.project}
torque.database.url = jdbc:mysql://${torque.project}
torque.database.driver = com.mysql.jdbc.Driver
torque.database.user = abc
torque.database.password = abc
torque.database.host =

I am able to connect to mysql using the command

>>>mysql --user=abc --password=abc --port=3306

Could any one suggest what is possibly wrong?


PS: I did see a message in the list with simillar problem, but i am
consistent with reply

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message