Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jdbc connection problem  RSS feed

 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm having trouble connecting to my mysql server through the NetBeans3.4 Database Explorer and Squirrel SQL client. Both apps use the jdbc to connect. I'm getting an invalid authorization exception: access denied for user "username@localhost.localdomain" using password=yes.
the url I'm using is as follows:
jdbc:mysql://localhost:3306/weblogdb
I Granted the user all the necessary permissions, and I can connect to the database using the mysql client. I suspect it's something in the syntax. Thanks for any help.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. I had a malformed url.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!