Why psql.exe does not work?

From: Sean G <seangaret(at)yahoo(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Why psql.exe does not work?
Date: 2006-01-19 20:11:27
Message-ID: 20060119201127.16729.qmail@web33506.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

I have done a silent installation, the installation
worked eventually, and I can use pgAdmin interface to
connect to it. However I have problem using psql.exe
to connect to the database.

I need to create a database called delphie from
command line. It should be a part of the installation
I'm working on.

I used the follwing commands
psql.exe -U root

but it keeps giving me:
psql: FATAL: password authentication failed for user
"root"

root is the supper user and the password is also root,
but not only the program does not prompt for password
but also there is no way that I can supply a password
through the command line.

The ultimate goal is I need to create a database
automatically without user interacation. I have a sql
script that I need to run to create the tables. I have
used Oracle without problems before but not sure how
to approach with Postgres.

Any help/tip is greatly appreciaged.

Sean

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2006-01-19 20:30:42 Re: Question
Previous Message Tom Lane 2006-01-19 17:01:51 Re: WAL log archive frequency