pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: unbale to use pg_ctl in Windows Cmd.
Date: Sat, 5 Dec 2020 15:22:53 -0600
Message-ID: <59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com> (raw)
In-Reply-To: <CACh77r77PdO6qnX6FGDbu2XJEA1art7btFZkXzMOb4GrdPzk1A@mail.gmail.com>
References: <CACh77r77PdO6qnX6FGDbu2XJEA1art7btFZkXzMOb4GrdPzk1A@mail.gmail.com>

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.

view thread (7+ messages)  latest in thread

Message-ID: <59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com>
Permalink:  ../59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com/
Also on:    postgresql.org/message-id/59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: unbale to use pg_ctl in Windows Cmd.
  In-Reply-To: <59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox