The Artima Developer Community
Sponsored Link

Java Answers Forum
Invalid authorization specification: Access denied for user

2 replies on 1 page. Most recent reply: Oct 9, 2002 11:57 AM by Julio C. Fonseca C.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Julio C. Fonseca C.

Posts: 18
Nickname: jfonseca
Registered: Mar, 2002

Invalid authorization specification: Access denied for user Posted: Oct 8, 2002 5:07 PM
Reply to this message Reply
Advertisement
How can I solved the following error?

java.sql.SQLException: Invalid authorization specification: Access denied for user:

Access denied for user: 'uvirtual@localhost.localdomain' (Using password: YES)

String url = "jdbc:mysql://localhost/uvirtual";
String query = "select * from registro_chat";
connection = DriverManager.getConnection(url,"uvirtual","myPassword");

myUser has all privileges in mysql user table!,

what's going on,

Don't get confused uvirtual is the name of the user and also the name of the database,

Also, I've tried,
connection = DriverManager.getConnection("jdbc:mysql://localhost/uvirtual?user=uvirtual& password=myPassword");

and still it doesn't work.

Greetings,
Julio


Sridhar

Posts: 3
Nickname: sweetsri
Registered: Oct, 2002

Re: Invalid authorization specification: Access denied for user Posted: Oct 8, 2002 11:44 PM
Reply to this message Reply
Hey.....
when u'r connecting to sql server.. .

if u'r user name is uvirtual
password.. is something...
database name i uvirtual..

create a dsn with sql server data sources.....

oke suppose dsn name is "abc"

Connection con = DriverManager.getConnection("jdbc:odbc:abc","uvirtual","password")
okeeee

Julio C. Fonseca C.

Posts: 18
Nickname: jfonseca
Registered: Mar, 2002

Re: Invalid authorization specification: Access denied for user Posted: Oct 9, 2002 11:57 AM
Reply to this message Reply
sql server?, I'm working with Linux Mandrake 8.1,

Greetings,
Julio

Flat View: This topic has 2 replies on 1 page
Topic: converting Object to int Previous Topic   Next Topic Topic: new to java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use