• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing database on the server thru applet

 
Sunil K Bansal
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to access database(MySQL) located on the server
I am trying to access database(MySQL) from the applet,
my applet is placed on the same server
path: www.onicra.com/mis/
but getting an error
I have tried coneecting with the following code:
con=DriverManager.getConnection("jdbc:mysql://
203.226.100.17:3306/onicra_com?user=onicra&password=mypass");
but I am unable to get connection to a remote database.
error is "java.sql.SQLException: communication Link Failure:bad handshake"
 
kishore mantri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to execute the applet using java1.1,because by using java1.2 u should use signed applets.so use java1.1 and check it out,because i faced same problem when i was doing my project.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic