Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2002
    Posts
    2

    Unanswered: Communication link failure

    Hi,
    I'm new here!
    I have a (for anyone who knows about mysql and java) simple problem to solve!
    Tomcat throws this error:java.sql.SQLException: Communication link failure: java.io.IOException
    at org.gjt.mm.mysql.MysqlIO.init(Unknown Source)
    at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)
    at org.gjt.mm.mysql.jdbc1.Connection.connectionInit(C onnection.java:92)
    at org.gjt.mm.mysql.Driver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager .java:83)
    at java.sql.DriverManager.getConnection(DriverManager .java:126)
    at ConnectionManagerTwo.getConnection(ConnectionManag erTwo.java:46)
    at GdiAdmin.insertStudent(GdiAdmin.java:82)
    at GdiAdmin.process(GdiAdmin.java:138)
    at TestDriver.main(TestDriver.java:13)
    The programm consists of 2 JSP-Files and 2 Beans.
    I work on a linux maschine with mysql installed, also the mm.mysql driver (I think correctly, because there's no error message from the servlet engine). If someone needs further Information for helping me with this problem, please ask!
    I think of my mysql database being the problem.
    But I've tried anything so far, nothing happened more!
    Thanks, Matthias

  2. #2
    Join Date
    Sep 2002
    Posts
    28

    Re: Communication link failure

    #g++ filename -lmtsqlclient -L/usr/lib/mysql
    U should use the above compile command .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •