You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by "joseagonzalezt@cantv.net" <jo...@cantv.net> on 2005/01/25 20:56:47 UTC
java.sql.SQLException: Communication failure during handshake using Mysql
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
Re: Mailing list archive down?
Posted by Brent Atkins <br...@pro-sys.biz>.
Seems to be up now...
Adam Allgaier wrote:
> Hi, I'm trying to search the mailling list archives, which appears to
> throw an excpetion:
>
> http://db.apache.org/torque/mail-lists.html
>
> org.apache.velocity.exception.VelocityException
>
> Thank you,
> Adam
>
>
> Thomas Fischer wrote:
>
>>
>>
>>
>> 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" <jo...@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
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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
Mailing list archive down?
Posted by Adam Allgaier <al...@yahoo.com>.
Hi, I'm trying to search the mailling list archives, which appears to
throw an excpetion:
http://db.apache.org/torque/mail-lists.html
org.apache.velocity.exception.VelocityException
Thank you,
Adam
Thomas Fischer wrote:
>
>
>
>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" <jo...@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
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
RE: java.sql.SQLException: Communication failure during handshake using
Mysql
Posted by Thomas Fischer <Fi...@seitenbau.net>.
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" <jo...@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