aspose file tools*
The moose likes JDBC and the fly likes not able to connect to mysql database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "not able to connect to mysql database" Watch "not able to connect to mysql database" New topic
Author

not able to connect to mysql database

Narasimha Raju Naidu
Ranch Hand

Joined: Mar 23, 2007
Posts: 37
hello to all,

i am getting this error can any one tell why i am getting this error

java.sql.SQLException: Communication link failure: Bad handshake
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2495
    
    8

Do you have the MySQL jdbc driver that matches your MySQL version?

Possible workaround:
The 4.1, changed the client authentication code . Start mysqld with
the --old-passwords option (or add old-passwords to the [mysqld]
section of my.cnf)
Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to connect to mysql database