wood burning stoves*
The moose likes JDBC and the fly likes Access denied error ....MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Access denied error ....MySQL " Watch "Access denied error ....MySQL " New topic

Access denied error ....MySQL

Balamurugan ponnambalam

Joined: Nov 04, 2001
Posts: 1
I am getting the following error message while connecting with the MySQL .(O/S :Sun OS 5.6)
Error.....java.sql.SQLException: Invalid authorization specification: Access denied for user: 'some_user&password@localhost' (Using password: NO)
Note that i have given all permission to the user using,
GRANT ALL PRIVILEGES .......................
The code i have used to connect with the database is,
import java.io.*;
import java.sql.*;
class test
public static void main(String a[])
Connection con;
Statement stmt;
ResultSet rs;
//do something with resultset
catch(Exception e)
System.out.println("Exception in second try.."+e);
plese guide me on this problem to solve.

I agree. Here's the link: http://aspose.com/file-tools
subject: Access denied error ....MySQL
Similar Threads
Errow when connecting JSP to MySQL
accessing maxdb database from wsad
please I urgently need help
Access denied to me in mysql
java.sql.SQLException Access Denied