Hello everyone

Thanks for the answer, Jonathan. I have already tried the way you propose, but
it gives me the same error. Any other ideas ?

Thanks a lot!!
Daniel Ducat


Lebrun Jonathan wrote:

> Try this :
>
> Connection C=DriverManager.getConnection(
>  "jdbc:mysql://localhost/test","username","password");
>
> ----- Original Message -----
> From: "Daniel Ducat" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 14, 2001 12:55 PM
> Subject: Cannot load connection class 'java.sql.SQLException problem !
>
> > Hello everyone
> >
> > I am using mysql version 11.12 Distrib 3.23.32 on Red Hat Linux.I am
> > also using a
> > Java Blackdown -1.3.0-FCS and MM.MySQL 2.0-pre2 JDBC driver..I am trying
> > to run the following program :
> >
> > import java.sql.*;
> >
> > public class LoadDriver
> > {
> >    public static void main(String[] Args)
> >    {
> >      try
> >       {
> >        Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> >        Connection C=DriverManager.getConnection(
> > "jdbc:mysql://localhost/test?user=username&password=password");
> >        C.close();
> >       }
> >      catch(SQLException E)
> >      {
> >       System.out.println(E.getMessage() + ":" +E.getSQLState() +":"+
> > E.getErrorCode());
> >      }
> >      catch(Exception E)
> >      {System.out.println("Unable to load driver");
> >      }
> >    }
> > }
> >
> >
> > After compilation, when I am trying to run it, I get the follwing error
> > :
> > Cannot load connection class 'java.sql.SQLException: Invalid
> > authorization specification: Access denied for user:
> > 'username@localhost' (Using password: YES)'.:08001:0
> >
> > Does anyone know why and when occurs this error ?
> >
> > Thanks a lot !
> > Daniel Ducat
> >
> >
> > ---------------------------------------------------------------------
> > Before posting, please check:
> >    http://www.mysql.com/manual.php   (the manual)
> >    http://lists.mysql.com/           (the list archive)
> >
> > To request this thread, e-mail <[EMAIL PROTECTED]>
> > To unsubscribe, e-mail
> <[EMAIL PROTECTED]>
> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to