By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,903 Members | 2,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,903 IT Pros & Developers. It's quick & easy.

JDBC to MySQL

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.