facebook

can’t connect to mysql, no good error msg [Closed]

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

    ymidt
    Member

    dialog is

    Error while trying to login to database:
    com.mysql.jdbc.Driver

    user/pwd is correct. Any ideas how I can tell what went wrong?

    Thanks,

    — David

    #218872 Reply

    Riyad Kalla
    Member

    The log file is located at: <workspace dir>\.metadata\.log, you can check it for exceptions that might help us.

    Also didyou add the Connector/J JAR file to your “Extra CLass Path” when you setup the driver?

    #227840 Reply

    Erick Dovale
    Member

    Hello there,
    I am having trouble having my eclipse to connect to myeclipse. The error seems to be that myeclipse is not finding the driver class as the next entry is added to the log everytime I try to connect:

    !ENTRY com.genuitec.eclipse.sqlexplorer 4 4 Apr 09, 2005 16:49:34.31
    !MESSAGE Error while trying to login to database
    !STACK 0
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at net.sourceforge.squirrel_sql.fw.util.MyURLClassLoader.findClass(MyURLClassLoader.java:113)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:96)
    at com.genuitec.eclipse.sqlexplorer.actions.LoginProgress$A.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    I have the driver for mysql in my project path. Is there any special thing that need to be done for this to work?

    Thanks

    Erick

    #227858 Reply

    Riyad Kalla
    Member

    Erick,
    Please go step-by-stept hrough this document: http://www.myeclipseide.com/images/tutorials/quickstarts/dbexplorer/

    #227907 Reply

    Erick Dovale
    Member

    Thanks a lot. Problem was solved.
    cheers,
    Erick.

    #242603 Reply

    PaulRSinnema
    Member

    Had the same problem. The funny thing is that when I ‘Edit’ the connection from DB Explorer I keep getting the error. After editing the Connection in the Preferences Dialog it started to work.

    #242604 Reply

    PaulRSinnema
    Member

    Forgot to set notify

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: can’t connect to mysql, no good error msg [Closed]

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