Skip site navigation (1) Skip section navigation (2)

newbie: retep wants to have username?

From: Mirko Zeibig <mirko(at)picard(dot)inka(dot)de>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: newbie: retep wants to have username?
Date: 2001-02-16 14:55:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Hello everybody,

I am not that deep in Java, just playing a bit with it, using PG7.1beta from
CVS on RedHat 7.0. Going to contrib/retep/jars I tried:

[mirko(at)romulan jars]$ java -cp ./retepTools.jar \ \
-Dorg.postgresql.Driver \
Now using JDBC Driver: org.postgresql.Driver
The user property is missing. It is mandatory.
        at java.lang.Throwable.<init>(
        at java.lang.Exception.<init>(
        at java.sql.SQLException.<init>(
        at org.postgresql.util.PSQLException.<init>(
        at org.postgresql.Connection.openConnection(
        at org.postgresql.Driver.connect(
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(
[mirko(at)romulan jars]$ 

to get a dump of the database. It is a bit of a pity that examples exposed
when invoked without parameters are all about oracle :-).

I tried jdbc:postgresql:mirko/mirko(at)localhost for -J as well, same result. I
do not see where the jdbc-url is parsed, I guess somewhere in the
pgsql-driver? Is it possible to use a url with user/db(at)host with PostgreSQL
at all?

I studied the jdbc-interface documentation and did not see this syntax
mentioned anywhere.

Best Regards


pgsql-jdbc by date

Next:From: Peter T MountDate: 2001-02-16 15:00:09
Subject: Re: Trouble With JDBC
Previous:From: Corey MosherDate: 2001-02-16 14:46:11
Subject: Trouble With JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group