Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access to a remote mysql from applet?

Status
Not open for further replies.

xd

Programmer
May 2, 2001
1
US

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
 
Hi, Hui,

Have your problem solved? I have the same problem now, could you tell me your solution?

cui
 
Hi, Hui,

Have your problem solved? I have the same problem now, could you tell me your solution via cui@cs.fsu.edu. Thanks a lot.

cui
 
hi hui and cui !!!
i too am having the same errors.
cud u plz . send me your solutions if u have made it.

thanx.

sumit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top