[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MySQL JDBC


Hi !
I have a problem accessing a MySQL DB from a java-app. On commandline I
can get in without problems with 

mysql <db> -u<user> -p<pass>

but with the following connect String:

  jdbc:mysql://localhost/<db>?user=<user>&password=<pass>

I get strage result. First time execution error message (from
SQLException caught) is:

  Invalid authorization specification: Keine Zugriffsberechtigung für
Benutzer: '<user>@127.0.0.1'. (Verwendetes Passwort: Ja)

after starting again, the message is :

  Invalid authorization specification: Keine Zugriffsberechtigung für
Benutzer: '<user>@'. (Verwendetes Passwort: Ja)

and it stays like that, the first will come again after not touching the
system for a while.

Has anybody got an idea ?

---
Kenneth

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread77904@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



This mailing list archive is a service of Copilot Consulting.