u should read the manual for mysql
u have to add permission to user table to get access from host 127.0.0.1
update user set host = '%' where user = 'jboss';
this allow you to connect to db from any host
Well, that's ok when you want your user to be able to connect from any host, but what if you don't?
In fact today I run into the same problem?
I still need to figure out what's wrong, so I will let you know once I did!
Live long and prosper,
it's just that simple as reading the f... manual of mysql