Thanks for the response. I am using this (where 'bob' is both the uid and the pwd value):
Connection myConn = DriverManager.getConnection("jdbc:mysql:///test?user=bob&password=bob"); That does not work. Dispite having specified a password of 'bob', this DOES work: Connection myConn = DriverManager.getConnection("jdbc:mysql:///test?user=bob&password="); That's the wierd part. I'll try explicitly naming localhost but I think that is implied(?). Cheers. Neal -----Original Message----- From: suresh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 7:50 PM To: neal Subject: Re: JDBC - Access denied (using password: yes) Are you using Connection con = DriverManager.getConnection("jdbc:mysql://localhost/database_name?user=root" ) ; If not try this regards Kayamboo Suresh At 07:27 Χ΋ 02/08/28 -0700, you wrote: >Does anyone know why I would recieve this error, when attmepting to connect >to mySQL via JDBC(driver=Connector/J 3.0 beta) I can connect if I provide no >password (even if the account specifies a pwd)? I can connect correctly >using MySQL Front ... but JDBC is giving me this error. > >javax.servlet.ServletException: Invalid authorization specification: Access >denied for user: '[EMAIL PROTECTED]' (Using password: YES) > >Thanks. >Neal > > >--------------------------------------------------------------------- >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