-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: mysql error after a version update
PostPosted: Wed Mar 09, 2005 9:48 am 
Newbie

Joined: Mon Feb 21, 2005 5:42 pm
Posts: 10
Hi !!!
I was working ok, with hibernate and mysql but yesterday I try to install the new mysql version (4.1.10) and receive the following error when I try to connect

Initializing Hibernate

INFO - Hibernate 2.1.6

INFO - hibernate.properties not found

INFO - using CGLIB reflection optimizer

INFO - configuring from resource: /hibernate.cfg.xml

INFO - Configuration resource: /hibernate.cfg.xml

INFO - Mapping resource: com/tutorial/hibernate/core/News.hbm.xml

INFO - Mapping class: com.tutorial.hibernate.core.News -> news

INFO - Configured SessionFactory: null

INFO - processing one-to-many association mappings

INFO - processing one-to-one association property references

INFO - processing foreign key constraints

INFO - Using dialect: net.sf.hibernate.dialect.MySQLDialect

INFO - Maximim outer join fetch depth: 2

INFO - Use outer join fetching: true

INFO - Using Hibernate built-in connection pool (not for production use!)

INFO - Hibernate connection pool size: 20

INFO - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/unnobanews

INFO - connection properties: {user=news, password=news}

INFO - Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory

INFO - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)

WARN - Could not obtain connection metadata

java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?

at org.gjt.mm.mysql.MysqlIO.init(Unknown Source)

at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)

at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown Source)

at org.gjt.mm.mysql.Driver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(DriverManager.java:512)

at java.sql.DriverManager.getConnection(DriverManager.java:140)

Somewhere I red that was necessary to update the jdbc driver, so I updated it from version nro 2 to version nro 3.1.7 but still the error
Phpmyadmin works ok and mysql control center can connect ok too.
But when I try a telnet localhost:3306 I receive and error of connection filed
Anyway the mysql status thowme correct information, that it working ok!
Any idea ?
King regards

Naty


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 10:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Why don't you ask this in a mysql forum, as this is obviously a mysql/jdbc problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 10:26 am 
Newbie

Joined: Mon Feb 21, 2005 5:42 pm
Posts: 10
yes! you are right, it's a good idea


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.