Aktivieren Sie Postgresql in Cygwin

ich installierteCygwin mit Perl undPostgresql Pakete aktiviert.

Dann tippte er:

 /usr/bin/cygserver-config (This will install the service)

Dann tippe:

net start cygserver(This starts the service)

Als nächstes muss ich Postgresql in Cygwin aktivieren, also habe ich die folgenden Befehle ausprobiert:

cygrunsrv -S cygserver

initdb -D /usr/share/postgresql/data

pg_ctl start -D /usr/share/postgresql/data -l /var/log/postgresql.log

createdb

psql

Ich erhalte einen Fehler:

$ initdb -D /usr/share/postgresql/data
-bash: initdb: command not found

$ pg_ctl start -D /usr/share/postgresql/data -l /var/log/postgresql.log
-bash: pg_ctl: command not found

Kann mir bitte jemand sagen, wie ich es richtig machen kann?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage