Access denied for user
Posted by: mark schrijver
Date: October 22, 2004 03:37AM

Hello there, I'm new to Connector/J, but all seems to be working reasonably well. However, when I try to connect over the internet to a mySql server that's on a different Domain then where I currently run my application I get the following exception:
Access denied for user: <username>@<mycurrentdomain>

Is there something I have to set in the database, (as far as I can tell, I have given the world access permission, but I could be wrong here) or am I doing something wrong with my connect string?

My connection sequance is as follows:
Connection conn = DriverManager.getConnection("jdbc:mysql://<dbname>?user=<username>&password=<password>");

the part behind the @ is not in the username I supply in the connect string, here I just supply the part before the @.

Options: ReplyQuote

Written By
Access denied for user
October 22, 2004 03:37AM
October 29, 2004 02:49PM
October 29, 2004 03:30PM
January 11, 2005 01:41AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.