If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Odd Invalid Authorization Specification Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-04, 15:12
saurabhs saurabhs is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Odd Invalid Authorization Specification Problem

Hi,
I am having trouble coding a basic application to retrieve some data from a database I have.

For reference, the database host is 'saurabhs.wv.cc.cmu.edu'
The client is 'go.ece.cmu.edu'

I have already set up the mySQL driver Connector/J (verified this).

I am gettin the following error when I try to

conn = DriverManager.getConnection("jdbc:mysql://saurabhs.wv.cc.cmu.edu/supari","root","*****");

where 'supari' is the name of the database i wish to access and root and ***** are the user/password for the database and it has been setup in the user table.

SQLException: Invalid authorization specification, message from server: "Access denied for user: 'root@GO.ECE.CMU.EDU' (Using password: YES)"
SQLState: 28000
VendorError: 1045

so, it seems like it is trying to get root access to go.ece.cmu.edu instead of at saurabhs.wv.cc.cmu.edu.

any suggestions?

Thanks,
Saurabh Sharma
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 06:53
iatalay iatalay is offline
Registered User
 
Join Date: Feb 2004
Location: Turkey
Posts: 2
Re: Odd Invalid Authorization Specification Problem

Hi,
Make sure that db access from hosts other than localhost is enabled in your mysql server. You know, it is possible to restrict access based on hosts and/or users in mysql.
Ilker
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On