LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-20-2006, 04:35 PM   #1
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slamd64, slackware64
Posts: 34

Rep: Reputation: 15
jdbc mysql java - please help me


Hi all good people,

I using Debian, Mysql 4.1.15, tomcat 5.0.28, jdk 1.5.0_07

I need some help, I had upgrade my debian system and now tomcat doesn't work.
Configuration seems all OK, but it doesn't work.

I have done some further testing, some small applications to try connect to mysql using java and that doesn't work either.

What is relly interesting, I have installed all using the same procedure on Slackware and there is everything ok.

When I try to start Java application that should connect to mysql i always get:

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:

java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1934)
at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:483)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:992)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2568)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at data.fun(data.java:13)
at data.main(data.java:33)


** END NESTED EXCEPTION **



Last packet sent to the server was 47 ms ago.



I've done so many search using google, and had nothing found. Is there any solution to work this out, it's really important. I haven't sleep two days, trying to get thing work, and now my brain is overloaded. I have try almost everything.


Thank you very much
 
Old 07-21-2006, 07:45 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
Is the skip-networking line commented in the file /etc/mysql.cnf? Is the mysql jar library in the classpath(WEB-INF/lib in tomcat, classpath in your java ide or in the command line)?
 
Old 07-22-2006, 05:23 AM   #3
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slamd64, slackware64
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrcheeks
Is the skip-networking line commented in the file /etc/mysql.cnf? Is the mysql jar library in the classpath(WEB-INF/lib in tomcat, classpath in your java ide or in the command line)?
The problem was with MySQL debian package, I have compiled MySQL myself and everything works fine, this is allready twice that Debian update missed my system.
From now on I trust only my self

thanks

Last edited by j0hnd0e; 07-22-2006 at 05:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java JDBC driver mickeyboa Fedora 2 07-23-2005 07:53 AM
jdbc connection in java balanagireddy Programming 2 07-01-2004 06:42 AM
I was working with jdbc in java in which we need navalarora Linux - Software 0 12-05-2003 06:41 AM
mysql and jdbc gballsch Programming 7 05-14-2003 04:04 PM
MySQL and JDBC oulevon Programming 1 07-16-2001 06:18 PM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration