9 messages in com.mysql.lists.javaRE: Connection from an applet| From | Sent On | Attachments |
|---|---|---|
| Sohaila Roberts | 13 Nov 2001 17:17 | |
| Yiu Wing | 13 Nov 2001 22:55 | |
| Røman Olshansky | 14 Nov 2001 07:44 | |
| Chris Gerrist | 14 Nov 2001 12:56 | |
| Chris Gerrist | 14 Nov 2001 13:51 | |
| Igor Fedulov | 14 Nov 2001 14:46 | |
| Yiu Wing | 14 Nov 2001 21:32 | |
| Yiu Wing | 14 Nov 2001 21:40 | |
| Yiu Wing | 14 Nov 2001 21:57 |
| Subject: | RE: Connection from an applet![]() |
|---|---|
| From: | Yiu Wing (yiuw...@virgin.net) |
| Date: | 11/14/2001 09:57:37 PM |
| List: | com.mysql.lists.java |
Maybe you need to set the restrictions correct with policytool.exe. But I am not sure. When you are start the applet via the dos prompt it has an other security policy then started from a webbrowser.
Yeah, that could be it. The server is actually on a Linux box, but I'll try to look up the policytool.exe equivalent for it. Thanks for you replies ;-)
When you are using the jdbc:odbc connection it is not possible to
connect
to
a mysql on a server machine. When you are using the jdbc:mysql driver it is possible but you need to set the authorisation correct otherwise you get an autohosation error.
Chris Gerrist
I'm using jdbc:mysql and I've set up the database server so that it allows me to login. I can login into the server in dos prompt, but not using my applet. Here's the exception it throws,
Cannot connect to MySQL server on 137.111.111.111:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.security.AccessControlException)
I just connected to the server on dos before testing my applet, so the server and the port are up and running. I think this is to do with the restrictions placed on applets in general. But if you think the problem is otherwise, please let me know.
Thanks.




