469,575 Members | 1,662 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

error while connecting mysql database using jsp

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
11 4752
Motoma
3,237 Expert 2GB
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
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
3,237 Expert 2GB
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
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
3,237 Expert 2GB
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
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
3,237 Expert 2GB
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
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
3,237 Expert 2GB
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
thanks to all py problem is solved
Apr 11 '07 #11
Motoma
3,237 Expert 2GB
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.

Similar topics

reply views Thread by ngiven | last post: by
3 posts views Thread by kamilla | last post: by
3 posts views Thread by dstewart | last post: by
2 posts views Thread by arsisthesis | last post: by
3 posts views Thread by Paradox Synthesist | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.