Re: Create database without entering password at command line

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Create database without entering password at command line
Дата
Msg-id 48322645.3080807@gmail.com
обсуждение исходный текст
Ответ на Create database without entering password at command line  ("Nathan Thatcher" <n8thatcher@gmail.com>)
Список pgsql-general
Nathan Thatcher wrote:
> I am trying to automatically create a database right after installing
> postgres. I launch the silent install (Windows) from my own executable
> and once it is done I need to create a database, tables, etc. I am
> trying to find a way to do this without having to explicitly enter the
> password in at the command prompt. What is the best way to do this?

You could use a pgpass file:

http://www.postgresql.org/docs/current/static/libpq-pgpass.html

--
Postgresql & php tutorials
http://www.designmagick.com/

В списке pgsql-general по дате отправления:

Предыдущее
От: "Gregory Williamson"
Дата:
Сообщение: Re: Vacuuming on heavily changed databases
Следующее
От: Chris
Дата:
Сообщение: Re: psql: FATAL: Ident authentication failed for user "postgres"