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:11:27 GMT
Hi,
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 127.0.0.1:3306. 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://127.0.0.1:3306/
torque.database.buildUrl = jdbc:mysql://127.0.0.1:3306/${torque.project}
torque.database.url = jdbc:mysql://127.0.0.1:3306/${torque.project}
torque.database.driver = com.mysql.jdbc.Driver
torque.database.user = abc
torque.database.password = abc
torque.database.host = 127.0.0.1

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?

Regards
Parsh

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


Mime
View raw message