By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

error while connecting mysql database using jsp

P: 53
i am getting the following error while connecting mysql database using jsp

java.sql.SQLException: Communication link failure: Bad handshake


can any one tell what is the actual problem
Apr 2 '07 #1
Share this Question
Share on Google+
11 Replies


Motoma
Expert 2.5K+
P: 3,235
i am getting the following error while connecting mysql database using jsp

java.sql.SQLException: Communication link failure: Bad handshake


can any one tell what is the actual problem
A little Googling told me that this may be resolved by downloading the latest version of the MySQL connector for Java.
Apr 2 '07 #2

P: 53
thanks for your reply,

i will do it but is there any post instalation instructions any are there like copying files from one folder to another folder like tools.jar in mysql4.0,17 version. waiting for your reply


regards


A little Googling told me that this may be resolved by downloading the latest version of the MySQL connector for Java.
Apr 2 '07 #3

Motoma
Expert 2.5K+
P: 3,235
thanks for your reply,

i will do it but is there any post instalation instructions any are there like copying files from one folder to another folder like tools.jar in mysql4.0,17 version. waiting for your reply


regards
I would suggest reading the online documentation at the MySQL website.
Apr 3 '07 #4

P: 53
i read the documentation and i done what they wrote. but still i am getting the same excetion. any forther sugessions
Apr 3 '07 #5

Motoma
Expert 2.5K+
P: 3,235
i read the documentation and i done what they wrote. but still i am getting the same excetion. any forther sugessions
What version of the driver are you using? What version MySQL database are you connecting to? Could you post the rest of the stack trace, as well as the code that caused the error (in [CODE ][/code] brackets of course)?
Apr 3 '07 #6

P: 53
hi

i am using mysql connector/ODBC 3.51 AND MYSQL SEREVER IS MYSQL SERVER 5.0.


What version of the driver are you using? What version MySQL database are you connecting to? Could you post the rest of the stack trace, as well as the code that caused the error (in [CODE ][/code] brackets of course)?
Apr 3 '07 #7

Motoma
Expert 2.5K+
P: 3,235
hi

i am using mysql connector/ODBC 3.51 AND MYSQL SEREVER IS MYSQL SERVER 5.0.
I did some bebopping around on the MySQL support site and it points out that this error can be thrown if the user does not have permissions to the table you are trying to access.
Apr 3 '07 #8

P: 53
thanks for your reply

now i reinstalld all softwares as follows
java 6.0, tomcat 6.0, mysql 5.0 and mysql connector/j 5.0


now i am gwttin the following error while running my jsp file

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

what may be the problem


I did some bebopping around on the MySQL support site and it points out that this error can be thrown if the user does not have permissions to the table you are trying to access.
Apr 3 '07 #9

Motoma
Expert 2.5K+
P: 3,235
thanks for your reply

now i reinstalld all softwares as follows
java 6.0, tomcat 6.0, mysql 5.0 and mysql connector/j 5.0


now i am gwttin the following error while running my jsp file

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

what may be the problem
Your application did not find the JDBC driver.
Apr 3 '07 #10

P: 53
thanks to all py problem is solved
Apr 11 '07 #11

Motoma
Expert 2.5K+
P: 3,235
Care to post back the solution so other people with this problem will have a solution?
Apr 11 '07 #12

Post your reply

Sign in to post your reply or Sign up for a free account.