wood burning stoves 2.0*
The moose likes JDBC 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
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: 19651
    
  18

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem in connecting on multiple mysql database versions
 
Similar Threads
MySql Lost connection exception under load
My head hurts: JDBC + Java
MySQl with Eclipse3.2
java.net.ConnectException: Connection refused: connect
Mysql server connection error