You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by awc <aw...@drytel.net> on 2002/12/27 20:06:03 UTC

Prepare-testdb Fails with Postgresql

HI all,

I just started to play with OJB. I have a fresh postgresql 7.3.1 install
on RedHat system. I have OJB-0.9.8.

1. I have selected the postgresql as database on build. properties.
2. On profile/postgresql.profile I have changed the datbaseUser,
databasePassword and host. Add database called OJB.

3. When I  run  prepare-testdb - I get error:  build-torque.xml:181
backend setup failed: FATAL user "ojb" does not exists.

sounds like this comes from a postgresql Drive.

Can some one help me please??

Thank you in advance for any replies.

anil


Re: Prepare-testdb Fails with Postgresql

Posted by Michael Ansley <mi...@btinternet.com>.
If you don't specify the database to connect to, postgres assumes it has the 
same name as the user (thus trying to connect your ojb user to database ojb).  
Make a database called ojb:

psql> create database ojb;

Or specify the database to connect to.  Given that this is for the testing, 
the first option is probably easier.

Cheers...


MikeA



On Friday 27 December 2002 19:06, awc wrote:
> HI all,
>
> I just started to play with OJB. I have a fresh postgresql 7.3.1 install
> on RedHat system. I have OJB-0.9.8.
>
> 1. I have selected the postgresql as database on build. properties.
> 2. On profile/postgresql.profile I have changed the datbaseUser,
> databasePassword and host. Add database called OJB.
>
> 3. When I  run  prepare-testdb - I get error:  build-torque.xml:181
> backend setup failed: FATAL user "ojb" does not exists.
>
> sounds like this comes from a postgresql Drive.
>
> Can some one help me please??
>
> Thank you in advance for any replies.
>
> anil
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>