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

Re: How to get to command line prompt

From: "Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com>
To: "Philippe Salama" <karebacnyc(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to get to command line prompt
Date: 2006-12-08 18:14:54
Message-ID: (view raw or whole thread)
Lists: pgsql-admin

Go to Start->run ->  type cmd  <press enter>

say you get the c: prompt then type

C:\blah\blah> psql -U postgres template1

above assumes psql is in PATH. if it succeeds
you shall get a psql prompt.

once you get the prompt , follow the instructions in text book
to create new database , users etc.


On 12/8/06, Philippe Salama <karebacnyc(at)yahoo(dot)com> wrote:
> I just installed Postgresql for windows.
> There is an elephant headed icon, which seems to be the way to get to the
> command line prompt. I have a textbook which assumes that you can
> communicate with postgres through command line, and run scripts.
> When I click the icon, it asks for password, and then does nothing but
> disappear.
> IF there is no command line available with the windows install, then, is
> there a 3rd party product?
> Thanks
>  ________________________________
> Have a burning question? Go to Yahoo! Answers and get answers from real
> people who know.

In response to

pgsql-admin by date

Next:From: Philippe SalamaDate: 2006-12-09 01:00:35
Subject: .bat file to access postgreSQL command line from C:\ Dos prompt
Previous:From: Philippe SalamaDate: 2006-12-08 18:00:41
Subject: How to get to command line prompt

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