facebook

[Urgent] Error: database login with the JDBC driver

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #330281 Reply

    ahadu
    Member

    I’m using MyEclipse 9 and trying to connect to MySQL DB on my localhost.

    I have installed the jdbc.jtds 1.2.6 Driver and when I test the connection I get a really strange error:

    Error while performing database login with the JDBC driver

    the stack trace in MyEclipse goes:

    java.sql.SQLException: I/O Error: Unknown packet type 0x48
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2311)
    at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:603)
    at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:345)
    at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
    at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
    at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:99)
    at com.genuitec.eclipse.sqlexplorer.actions.LoginProgress$Login.run(LoginProgress.java:48)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: Unknown packet type 0x48
    at net.sourceforge.jtds.jdbc.SharedSocket.readPacket(SharedSocket.java:857)
    at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(SharedSocket.java:727)
    at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(ResponseStream.java:466)
    at net.sourceforge.jtds.jdbc.ResponseStream.read(ResponseStream.java:103)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2206)
    … 7 more

    Can anybody help?
    Thanks

    #330312 Reply

    support-joy
    Member

    ahadu,

    jdbc.jtds 1.2.6 Driver is not the driver which is used for MySQL connection. You have to download for example mysql-connector-java-5.1.7 jar file to get the MySQL connection working.Please download the jar file which is compatible with your mysql version.

    Take a look at this for detailed information – http://www.myeclipseide.com/documentation/quickstarts/dbtools/

    Let us know if you see any issues.

    #330315 Reply

    ahadu
    Member

    Yep, I got mysql-connector-java-5.1.22 and it works like a charm, Thanks support-joy!

    #330317 Reply

    support-joy
    Member

    ahadu,

    Glad that you got it working.
    Do let us know if you have any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Urgent] Error: database login with the JDBC driver

You must be logged in to post in the forum log in