I am working on java windows application. I am trying to connect to mysql server(Localhost via UNIX socket) using jdbc. But it is displaying an error message as
"Access denied for user 'root'@'ipaddress'.I didn’t get what is the problem.Is it the problem connecting to unix server from jdbc? If so how can I resolve this issue.Please help me regarding this.

Thanks in advance
You need to set up mysql to allow remote connection for any users. The default syntax is:
grant on to @ identified by
eg
grant all on test.* to root@ipaddress identified by root
Will allow ‘root’ to connect from that IP using that password and give all permissions on all tables in that database.