db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <Fisc...@seitenbau.net>
Subject RE: java.sql.SQLException: Communication failure during handshake using Mysql
Date Wed, 26 Jan 2005 07:18:30 GMT





Hi,

most probably the Exception message is correct and mysql is not running on
localhost:3306 or (quite improbably) your server is configured such as not
to accept connections from localhost.

By the way, why are the urls different in your torque configuration ?
Usually, they shouldn't be.

    Thomas

"joseagonzalezt@cantv.net" <joseagonzalezt@cantv.net> schrieb am 25.01.2005
20:56:47:

> Hi
>
> I'm using MySQL Server 4.1.9 and TORQUE.  When I run maven
torque:create-db
> the build fails.
>
> BUILD FAILED
> File...... C:\Documents and
> Settings\JOSE\.maven\cache\maven-torque-plugin-3.1.1\plugin.jelly
> Element... sql
> Line...... 394
> Column.... 44
> java.sql.SQLException: Communication failure during handshake. Is there a
> server running on localhost:3306?
>
> My  T O R Q U E  C O N F I G U R A T I O N  is:
>
> torque.project = bookstore
> torque.targetPackage = com.kazmier.om
> torque.database = mysql
>
> torque.database.createUrl = jdbc:mysql://localhost:3306/mysql
> torque.database.buildUrl = jdbc:mysql://localhost:3306/bookstore
> torque.database.url = jdbc:mysql://localhost:3306/bookstore
> torque.database.driver = org.gjt.mm.mysql.Driver
> torque.database.host = localhost
> torque.database.user = root
> torque.database.password = mypass
>
> My dependency is
>
>     <!-- ============================================================ -->
>     <!-- =                                                          = -->
>     <!-- = JDBC Drivers                                             = -->
>     <!-- =                                                          = -->
>     <!-- ============================================================ -->
>
>       <dependency>
>       <groupId>mysql</groupId>
>       <artifactId>mysql-connector-java</artifactId>
>       <version>3.1.6-bin</version>
>       <url>http://www.mysql.org/</url>
>       <type>jar</type>
>       <properties>
>         <war.bundle>true</war.bundle>
>       </properties>
>     </dependency>
>
> thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
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