Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic