Hi
I used mm.mysql-2.0.4 driver to connect to a remote Mysql database from an applet but failed, I don't know how to do that. Would you please help me with that?
Thanks in advance.
ERROR MESSAGE::
Load succeeded
In exception
java.sql.SQLException: Cannot connect to MySQL server on 192.168.2.84:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.security.AccessControlException)
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.sql.SQLException(java.lang.String, java.lang.String)
void org.gjt.mm.mysql.Connection.connectionInit(java.lang.String, int, java.util.Properties, java.lang.String, java.lang.String, org.gjt.mm.mysql.Driver)
void org.gjt.mm.mysql.jdbc2.Connection.connectionInit(java.lang.String, int, java.util.Properties, java.lang.String, java.lang.String, org.gjt.mm.mysql.Driver)
java.sql.Connection org.gjt.mm.mysql.Driver.connect(java.lang.String, java.util.Properties)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
boolean com.pelagonet.spe.swing.DataAcquisition.connectToDB()
void TestAppletManually$4.actionPerformed(java.awt.event.ActionEvent)
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
void javax.swing.DefaultButtonModel.setPressed(boolean)
void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
void java.awt.Component.processEvent(java.awt.AWTEvent)
void java.awt.Container.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
java.sql.SQLException: Cannot connect to MySQL server on 192.168.2.84:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.security.AccessControlException)
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.sql.SQLException(java.lang.String, java.lang.String)
void org.gjt.mm.mysql.Connection.connectionInit(java.lang.String, int, java.util.Properties, java.lang.String, java.lang.String, org.gjt.mm.mysql.Driver)
void org.gjt.mm.mysql.jdbc2.Connection.connectionInit(java.lang.String, int, java.util.Properties, java.lang.String, java.lang.String, org.gjt.mm.mysql.Driver)
java.sql.Connection org.gjt.mm.mysql.Driver.connect(java.lang.String, java.util.Properties)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
boolean com.pelagonet.spe.swing.DataAcquisition.connectToDB(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
boolean com.pelagonet.spe.swing.DataAcquisition.executeUpdate(java.lang.String)
void TestAppletManually$4.actionPerformed(java.awt.event.ActionEvent)
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
void javax.swing.DefaultButtonModel.setPressed(boolean)
void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
void java.awt.Component.processEvent(java.awt.AWTEvent)
void java.awt.Container.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
Hui