what privileges had abc have? if you're looking at just getting up n running just create the db and the rest should work fine..

i assume that
> mysql -u abc -pabc -h localhost

works.. sorry if thats not helpful, worth asking though..

cheers mark

On Tuesday, August 12, 2003, at 05:21 PM, Parsh Wanath wrote:

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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to