This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one 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


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

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: 19897
    
  20

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in connecting on multiple mysql database versions