client machine cannot access the database server using jdbc

hi everyone,

i am having a problem that whenever I try to connect my applet application to my MySql databse using applet i am getting an error called

Cannot connect to database servercom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

But if i try to access it from my server(my development computer) using the same applet application its working perfectly fine..

what do i do ....

Please help me its a bit urgent

[496 byte] By [Mr.VijayDesai@OPSPLa] at [2007-11-27 10:03:03]
# 1
> due to underlying exception: Where is this exception? To trace the problem you always need to know the root cause of the exception.
BalusCa at 2007-7-13 0:37:58 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

hey this that exception:

JDBC Test

Cannot connect to database servercom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException

MESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)

STACKTRACE:

java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)

at com.mysql.jdbc.StandardSocketFactory.unwrapExceptionToProperClassAndThrowIt(StandardSocketFactory.java:292)

at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:182)

at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:268)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:2745)

at com.mysql.jdbc.Connection.<init>(Connection.java:1553)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at test.connect(test.java:30)

at test.init(test.java:75)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

** END NESTED EXCEPTION **

Mr.VijayDesai@OPSPLa at 2007-7-13 0:37:58 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
java.net.SocketException: java.security.AccessControlException: access denied There is the root cause. The message is self-explaining.Just check if the username/password combo are correct and having sufficient rights.
BalusCa at 2007-7-13 0:37:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
Hey thanx for the help..USername and Password are correct and also while accesing it i m accessing it thrugh ROOT...still the problem is not solved.
Mr.VijayDesai@OPSPLa at 2007-7-13 0:37:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...