JDeveloper/MySql: 'access denied' (dan)

Markus Virtanen virtanen at alaparkki.com
Fri Aug 26 18:31:32 UTC 2005


> I'm trying to develop a web application using JDeveloper/MySql...
> My 'try-out' servlet ends here:
> conn =
> DriverManager.getConnection("jdbc:mysql://localhost/eyes?user=me&password=
> pwd");
> saying
> "Access denied for user 'me'@'localhost.localdomain' (using password:
> YES) 11045 228000"
> user me has been granted 'all' and the database eyes is accessible via
> the commandline.

Dan, it looks like the authentication might fail because of a bad hostname
definition.

How have you defined the host information for the MySQL-user "me"? Try to
use the local loopback IP (127.0.0.1) instead of any hostname in the
user-table.

-m-

-- 
http://www.markusvirtanen.com/





More information about the fedora-list mailing list