|
|
Invalid authorization specification: Access denied for user
|
Posted: Oct 8, 2002 5:07 PM
|
|
|
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
|
|