| From: | Fher <fher(at)librosyarte(dot)com(dot)mx> | 
|---|---|
| To: | "sandrigo(dot)lezcano(at)gmail(dot)com" <sandrigo(dot)lezcano(at)gmail(dot)com> | 
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org | 
| Subject: | Re: initdb: failed | 
| Date: | 2005-02-23 16:23:20 | 
| Message-ID: | 421CADF8.8000307@librosyarte.com.mx | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-es-ayuda | 
intenta primero hacer lo que te dice:
mkpasswd -l /etc/passwd
mkgroup -l /etc/group
despues intenta con estos scripts, yo lo he solucionado con cygwin y con 
estos scriptts de la siguente forma:
Primero - dejo estos tres scripts en c:\cygwin\
1 pgini
2 db-start
3 db-stop
Segundo - La vesion 7.4.5 de postgres sobre cygwin no me ha trabajado 
con el ipc-daemon2.exe sino con el cygserver
para esto utilizo el primer script (pgini) el cual te pregunta si deseas 
sobreescribir la configuracion del cygserver
a esto yo le digo "yes" despues te pregunta si quieres dejarlo como un 
servicio y a esto digo que "no" arranca el cygserver
y ejecuta initdb sobre "/usr/local/pgsql/data" .
Tercero - Para ejecutar el servidor de postgres ahora solo es necesario 
ejecutar el segundo script(db-start)
 y para pararlo el tercero.
*No me doy el credito por esto pero no recuerdo de donde obtuve esta 
informacion y los scripts pero
fue de gran ayuda ademas creo que los scripts son muy claros.
*******pgini******
___________________________________
#!/bin/sh
mportant set-variable
CYGWIN=server
export CYGWIN
# the second very important set-variable - to unset it worked for me 
(then language-setting is C).
unset LANG
echo
# the third very important set-variable
PATH=/usr/bin:/usr/sbin:$PATH
export PATH
#echo "IPC-Daemon starten..."
echo
echo "cygserver-config starting..."
cygserver-config
echo "sygserver starten..."
cygserver &
ps -f
echo
echo "initdb starting..."
initdb -E latin1 -D /usr/local/pgsql/data
ps -f
___________________________________
*****db-start*****
___________________________________
#!/bin/sh
CYGWIN=server
export CYGWIN
PATH=/usr/bin:/usr/sbin:$PATH
export PATH
echo
echo "sygserver starting..."
cygserver &
ps -f
echo
echo "PostgreSQL starting..."
postmaster -D /usr/local/pgsql/data &
ps -f
___________________________________
*****db-stop*****
___________________________________
#!/bin/sh
echo
echo "PostgreSQL finishing..."
pg_ctl stop -w -D /usr/local/pgsql/data -s -m smart
ps -f
echo
echo "cygserver finishing..."
kill $(ps -f | grep cygserver | awk '{print $2}')
ps -f
___________________________________
sandrigo(dot)lezcano(at)gmail(dot)com escribió:
> estoy usando Win2k y ipc-daemon2.exe y me da los sgtes.errores:
> tb tengo el Pg8.0 que funcina bien pero el cygwin NO.
> alguna sugerencia???
>
> Your group is currently "mkpasswd".  This indicates that
> the /etc/passwd (and possibly /etc/group) files should be rebuilt.
> See the man pages for mkpasswd and mkgroup then, for example, run
> mkpasswd -l [-d] > /etc/passwd
> mkgroup  -l [-d] > /etc/group
> Note that the -d switch is necessary for domain users.
> sandrigo(at)desenv10 ~
> $
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rafa | 2005-02-23 16:59:30 | Como pasar parametros a una vista? | 
| Previous Message | Manuel Sugawara | 2005-02-23 16:10:58 | Re: formato de fecha |