473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 5202
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

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

Similar topics

3
by: Pugi! | last post by:
On a freshly installed Fedora C3 (incl. webserver apache php mysql) i get the following problem when connecting to mysql through a browser (phpMyAdmin): : #2002 Can't connect to local MySQL...
0
by: ngiven | last post by:
Hello All, I'm running mysql 4.0.21 on an HP-UNIX machine and I am getting the following error: Got error 12 from Table Handler After looking up this error in the MySQL manual,...
3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
4
by: 21novembre | last post by:
Hi all, I got a quite strange problem when I tried to setup a database backup shell. I put it this way: "bin/mysqldump --opt --user=xxx --password=xxx DB > DB.bak" However, error 1045 came to...
3
by: dstewart | last post by:
Situation: One common MySQL database server on SuSE 9.1 with all updates. Uses 'rinetd'. Has entries for the appropriate IP addresses of all servers. NOTE: If the appropirate entries are NOT in...
6
by: Erik H. | last post by:
Trying to connect to MySQL db on localhost, and populate datagrid from a dataset using code inline method. Getting the following compile error: Error Message: "CS0246: The type or namespace...
2
by: arsisthesis | last post by:
Hi all, I have a curious problem with the ERROR 1044 and 1045: -system: OS X 10.4.3 (bash shell) -bash schell prompt: /~ kssun$ -I have set passwd to 'kssun' -I set path:...
3
by: Paradox Synthesist | last post by:
hi, i am a newbie to asp.net and have started learning mainly from websites. i have a question which IS very silly and trivial. ...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
8
n8kindt
by: n8kindt | last post by:
hi guys, i am also posting this question in the MySQL forum but am putting the detailed post on here. here is the message i am having problems with: ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.