On Sat, 24 Apr 2004, Zief wrote:
> Hi,
>
> I am trying to connect to a database through a signed and trusted applet.
> The database is on my computer, and when running the Applet in IE6 on my
> computer (I have latest java1.5.0), it works fine. However, when running the
> applet on other computers on the network, or over the internet, I get an
> SQLConnect exception due to java.net.Connect Connection refused.
> I am fairly confident that this isn't a security issue, as the computers I
> am trying the applet out on all have my certificate trusted and given
> AllPermission in the policy file. Is there anything else which could be
> causing this? My connection url looks like:
> "jdbc:mysql:myipaddress//"
> is there anything wrong with that so it would run on my computer and no-one
> elses?
Connector/J runs on the client side... you would get a different error if
your applet signing was the problem.
I am pretty sure the problem _is_ a security issue. Read about usernames
and passwords in the MySQL documentation... making particular note of the
host from which each username can be used.
http://dev.mysql.com/doc/mysql/en/User_names.html
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil@stripped> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...2k
---------------------------------------------------------------------------