| View previous topic :: View next topic |
danwdm Funnilein
Joined: 12 Sep 2005 Posts: 3
|
Posted: 31.12.05 14:53 Post subject: Java & MySQL? |
|
|
|
I'm trying to integrate some of the functions on my site into a Java JApplet...
I've went over everything in the JAVA, and MySQL manuals for connecting to the MySQL Database...
I'm using localhost, and I have the name for the database, the username, and password all set up in the right places...
but it just... wont... work...
any Ideas on how to find out how to make MySQL work with JAVA, or what the problem could be? |
|
| Back to top
|
|
|
ven Moderator

Joined: 10 Dec 2004 Posts: 2064 Location: USA
|
Posted: 01.01.06 01:23 Post subject: |
|
|
|
I'm afraid you can't do that, and here's why. Java Applets run on clients' computers - not on the server - and Funpic's database access is limited to being accessed only from the server as "localhost". And when the applet tries to access localhost, it actually tries accessing the machine on which the browser is running. _________________

|
|
| Back to top
|
|
|
danwdm Funnilein
Joined: 12 Sep 2005 Posts: 3
|
Posted: 01.01.06 03:59 Post subject: |
|
|
|
darn... that ruins it all...
I new I'd half to get my own server and database to work the game I have in the making...
but I half to wait for that same ocassion to do anything with MySQL and JAVA...
there goes the special inovations for my site... guess I'll wait till i'm far enough allong to go compleatly public... |
|
| Back to top
|
|
|