Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc connection problem

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic