I have done that - that is both localhost and 127.0.0.1 (to be safe)
-----Original Message-----
From: Russell Simpkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:46 PM
To: Apache Torque Users List
Subject: RE: SQL Exception when using torque
you could create another account for [EMAIL PROTECTED]
-----Original Message-----
I tired that. the same result - ant waits for about 6 minutes before it
throws the exception
another thing is
mysql -uabc -pabc -hlocalhost
works, but not
mysql -uabc -pabc -h127.0.0.1
-----Original Message-----
try to change your torque to use localhost instead of 127.0.0.1
-----Original Message-----
I am able to connect as
mysql -uabc -pabc -hlocalhost
abc has all privilages except grant
-----Original Message-----
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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]