----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

......

public Database(String DriverName r, String dbUrl, String User,
String PassWord) {
      try {
       DriverManager.registerDriver ((Driver) Class.forName
(DriverName).newInstance());
       Conn = DriverManager.getConnection (dbUrl, User, PassWord);
       }
       catch (Exception e) {
          e.printStackTrace (System.err);
       }
}

private Connection Conn;
.......



This works for me. (with mySql, Oracle, and Postgresql)

Try to replace your localhost with the ip-address, just to rule out that.
--
Simu Soft
v/Anders Svensson
N�rrebrogade 140, 4 th
2200 K�benhavn N
e-mail  : [EMAIL PROTECTED]
tlf.    : +45 3583 8126


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to