This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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: 2531
    
  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
youtube channel
 
I agree. Here's the link: http://kickstarter.com/rocket-mass-heater
 
subject: not able to connect to mysql database