Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL Exception My SQL ODBC 3.51 Driver Access Denied

 
Rajesh Vijaya
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting the SQL Exception MySql ODBC 3.51 Driver access Denied.

I using windows xp2 and mysql database. I tried creating both user DSN and system DSN but could not succeed.Any help in this regard is greatly appreciated!

thanks

Rajesh
 
Rajesh Vijaya
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fixed this up,

Before

DriverManager.getConnection("jdbc dbc:mySQLDSN"," "," ");

the error is i left a blank space in the user and password arguments;

just this is working fien

DriverManager.getConnection("jdbc dbc:mySQLDSN","","");


rajesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic