469,568 Members | 1,394 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

JDBC to MySQL

Hello guys

I have question..... I wrote a Java program to connect to MySQL using
JDBC ...and it works fine...it connects and it does what is supposed
to do.....however when I use the same program to connect to another
MySQL server (in another machine) then I get an exception: "Server
Configuration Denies access to data source" ....any ideas???

Thank you
Marios Koumides
Jul 19 '05 #1
2 2589
Ike
yes, you need to connect to a server on the same machine. Workaround - put a
servlet on the same machine as the database, and talk to the servlet. Thats
the commone way of doing it via jdbc. -Ike

"Marios Koumides" <ma*************@cypak.net> wrote in message
news:fe**************************@posting.google.c om...
Hello guys

I have question..... I wrote a Java program to connect to MySQL using
JDBC ...and it works fine...it connects and it does what is supposed
to do.....however when I use the same program to connect to another
MySQL server (in another machine) then I get an exception: "Server
Configuration Denies access to data source" ....any ideas???

Thank you
Marios Koumides

Jul 19 '05 #2
Ike
yes, you need to connect to a server on the same machine. Workaround - put a
servlet on the same machine as the database, and talk to the servlet. Thats
the commone way of doing it via jdbc. -Ike

"Marios Koumides" <ma*************@cypak.net> wrote in message
news:fe**************************@posting.google.c om...
Hello guys

I have question..... I wrote a Java program to connect to MySQL using
JDBC ...and it works fine...it connects and it does what is supposed
to do.....however when I use the same program to connect to another
MySQL server (in another machine) then I get an exception: "Server
Configuration Denies access to data source" ....any ideas???

Thank you
Marios Koumides

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ron | last post: by
reply views Thread by Nils Valentin | last post: by
reply views Thread by sridhar nagabhurshana | last post: by
ak1dnar
4 posts views Thread by ak1dnar | last post: by
oll3i
5 posts views Thread by oll3i | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.