Re: Mysql Connector




"Ike" wrote...

Through Java, I am attempting to connect to a MySQL 4.12 server
on a remote computer. I can connect fine via php. I cann connect
fine via Java, through a servlet, when the servlet is on the same
machine (localhost) as the MySQL DB.

Though you're not very clear, it sounds like connections on the same machine
is ok, but not from another, yes?

MySQL need to be configured very strict on who is allowed to access the db.
Any user (even root) must be specifically configured to be allowed from
specific "hosts", or from "any host".

AFAIR, the default configuration is to allow a user only from localhost.

// Bjorn A




Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
.



Relevant Pages

  • Re: Servlet init(). & configuration changes.
    ... >> I have a servlet that reads its configration from a xml file during ... The interface will do a post on servlet and the servlet ... >> configuration, without manual changes in the configuration. ... > 1) A servlet instance is only initialized once, ...
    (comp.lang.java.programmer)
  • Re: Servlet init(). & configuration changes.
    ... A web based interface will be used to specify the configuration used by ... The interface will do a post on servlet and the servlet ... A servlet instance is only initialized once, ...
    (comp.lang.java.programmer)
  • Re: DatagramSocket.send problem on Linux 2.6 with Jre 1.4.2
    ... This is exactly the same configuration that I am also using (my jre is ... We are running Linux 2.6.9-22.EL with Jre 1.4.2 on a AMD-64 machine. ... invoked through a servlet, there is unsatisfied link error from ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.programmer)
  • Servlet To Java Application Communication
    ... I would like to write a Java servlet that it will be able to ... connect with a database (mySQL) and search its contents. ...
    (comp.lang.java.developer)
  • Servlet init(). & configuration changes.
    ... I have a servlet that reads its configration from a xml file during ... A web based interface will be used to specify the configuration used by ... what will happen to the ongoing post requests during which init will be ...
    (comp.lang.java.programmer)