visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: JAVA , JDBC, MYSQL ERROR...HELP


By: lodibabu U.S.A.  Date: 24/11/2004 00:00:00  English  Points: 80 Status: Answered
Quality : Excellent
Hi,

i am new to my sql

i created the Database
I created a table
I populated the table with some values
I created a user
I attached that user to the database


after than i am trying to access information using my JSP page using JDBC i am getting this error

java.sql.SQLException: Invalid authorization specification: Access denied
for user: 'babu002_dbaccess@localhost' (Using password: YES)

I understand we need to do something with the GRANT command , but i am not sure what to do. help me out here.

my java code look like this


String dbURL = "jdbc:mysql://localhost/babu002_backend";
String dbDriver = "com.mysql.jdbc.Driver";
String dbUser = "username";
String dbPass = "password";

Thanks - BM





By: VGR Date: 24/11/2004 03:32:00 English  Type : Answer
<A HREF="http://www.mysql.com/doc/en/GRANT.html">http://www.mysql.com/doc/en/GRANT.html</A>
By: VGR Date: 24/11/2004 03:34:00 English  Type : Comment
for a start :
-have you set a non-empty password for mysql-user "root" ?
-have you created the mysql-user 'babu002_dbaccess' ? This is done via GRANT command...


-connect as 'root'
-show me the result from : SELECT * FROM mysql.user;

Do register to be able to answer

EContact
browser fav
page generated in 334.844830 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page