permaculture playing cards
The moose likes JDBC and Relational Databases 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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 2551
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to connect to mysql database
 
jQuery in Action, 3rd edition