File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to connect to mysql database

 
Narasimha Raju Naidu
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic