Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to connect to mysql database

 
Narasimha Raju Naidu
Ranch Hand
Posts: 37
  • 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: 2596
12
C++ Linux Netbeans IDE
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic