z*h 发帖数: 22 | 1 hi, guys,
I got to configuration problem with mysql. for test, I set a user as test
as well as the password. If I do it like this: mysql -u test -p test, it
does work. however, when I try to connect the db in java code through jdbc,
an authorization error is reported.
what I did is:
jdbc:mysql://localhost/test?user=test&password=test
all other settings are right, including port blah, blah.
any suggestions? help please. |
|