Re: unbale to use pg_ctl in Windows Cmd.

Поиск
Список
Период
Сортировка
От Ron
Тема Re: unbale to use pg_ctl in Windows Cmd.
Дата
Msg-id 59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com
обсуждение исходный текст
Ответ на unbale to use pg_ctl in Windows Cmd.  (mark armon <1994hejian@gmail.com>)
Ответы Re: unbale to use pg_ctl in Windows Cmd.
Список pgsql-admin
On 12/5/20 11:02 AM, mark armon wrote:
pg_ctl status
pg_ctl: no database directory specified and environment variable PGDATA unset
Try "pg_ctl --help" for more information.

C:\Users\Think>pg_ctl --help
pg_ctl is a utility to initialize, start, stop, or control a PostgreSQL server.
 
I don't know where the pg_data directory. So I set the C:\Users\Think\Desktop\postgres\data as user variable and system variable In windows setting. But still not working. In the bin directory, there is pg_ctl.exe file.

Randomly deciding on a directory because you don't know where the data actually is doesn't work.  You need to know where the data is.

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: unbale to use pg_ctl in Windows Cmd.
Следующее
От: Paul Förster
Дата:
Сообщение: Re: unbale to use pg_ctl in Windows Cmd.