Thanks for the tips on com.mysql.jdbc.Driver...

Now I am having a connection refusal error. But I can connect with the username and password stored in build.properties and Torque.properties.

Witness the following:

[torque-3.0]# grep adminuser build.properties Torque.properties
build.properties:torque.database.user = torque_adminuser
build.properties:torque.database.password = torque_adminuser_password
Torque.properties:torque.database.bookstore.username = torque_adminuser
Torque.properties:torque.database.bookstore.password = torque_adminuser_password


[torque-3.0]# mysql -utorque_adminuser -ptorque_adminuser_password
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 26 to server version: 3.23.52

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> exit
Bye

[torque-3.0]# ant -f build-torque.xml create-db
Buildfile: build-torque.xml

create-db-check:

create-db:
[torque-data-model] Generating to file /usr/local/torque-3.0/src/sql/create-db.sql
[torque-data-model] Resolver: used database.dtd from org.apache.torque.engine.database.transform package
[torque-data-model] Resolver: used http://jakarta.apache.org/turbine/dtd/database_3_1.dtd
[echo]
[echo] Executing the create-db.sql script ...
[echo]


BUILD FAILED
file:/usr/local/torque-3.0/build-torque.xml:302: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused


Total time: 3 seconds


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



Reply via email to