This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes problem in connecting on multiple mysql database versions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "problem in connecting on multiple mysql database versions " Watch "problem in connecting on multiple mysql database versions " New topic
Author

problem in connecting on multiple mysql database versions

ramzi ghaith
Greenhorn

Joined: Apr 03, 2007
Posts: 12
Hi all,

i have a mysql database version 4.0 runing on port 3306 and i installed another version from mysql 5.0 runing on port 3308.

the problem is, when i trying to connect on mysql version 5 on port 3308 i face the error something like :
"java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3308?"

and i tried to connect to my mysql 5.0 by : telnet localhost 3308 its work.


If any body has any idea help me.

Thank you all.

Regards,
Ramzi
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

Perhaps your driver does not support MySQL 5? Have you tried the latest version?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
Have you checked out Aspose?
 
subject: problem in connecting on multiple mysql database versions
 
It's not a secret anymore!