Hello,

I can't make a remote connection to our MySQL server? I'm using
org.gjt.mm.mysql.Driver. But if I connect to my db server (localhost), it
can connect successfully. I use the following format for connection and the
IP address of the remote server for hostname.

Connection conn =DriverManager.getConnection (dbURL, account, password);
  where dbURL = jdbc:mysql://[hostname][:port]/dbname


This is what I noticed. If I connect to my local server using "localhost",
it's fine. But if I use my IP address instead of "localhost", I can't
connect anymore.


Lester


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to