On Mon, Jun 18, 2001 at 10:05:16AM -0400, Jeff Waugh wrote:
> Sorry, I hadn't read your error message closely enough.
>
> 'No suitable driver' usually means a problem with the database
> URL to which you are trying to connect.
>
> That should look something like:
>
> db = DriverManager.getConnection("jdbc:postgresql://hostname/dbname",
> "username", "password");
>
> Try playing with that.
Well, now it works. It seems you were right. I can not connect using
DriverManager, but the following code works pretty fine:
Driver drv = new org.postgresql.Driver();
Properties p = new Properties();
p.put("user","my_username");
p.put("password","my_password");
Connection con = drv.connect("jdbc:postgresql://localhost:5432/testowa",p);
Thanks all of you for your help.
Best regards,
R.
--
** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocław **
tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/