Habilitar Postgresql en Cygwin
lo instaléCygwin
con Perl yPostgresql
paquetes habilitados.
Luego escribió:
/usr/bin/cygserver-config (This will install the service)
Luego escriba:
net start cygserver(This starts the service)
Luego necesito habilitar Postgresql en Cygwin, así que probé los comandos que se mencionan a continuación:
cygrunsrv -S cygserver
initdb -D /usr/share/postgresql/data
pg_ctl start -D /usr/share/postgresql/data -l /var/log/postgresql.log
createdb
psql
Me sale un error:
$ 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
¿Puede alguien decirme cómo hacerlo bien?