This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Access denied error ....MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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) 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.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:
subject: Access denied error ....MySQL
It's not a secret anymore!