pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
AYUDA CON LA INSTALACION DEL POSTGRESQL
2+ messages / 2 participants
[nested] [flat]

* AYUDA CON LA INSTALACION DEL POSTGRESQL
@ 2005-06-12 20:56 Steph Frias <lero999@yahoo.com>
  2005-06-20 04:37 ` Re: AYUDA CON LA INSTALACION DEL POSTGRESQL Nahum Castro <nahumcastro@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Steph Frias @ 2005-06-12 20:56 UTC (permalink / raw)
  To: pgsql-sql



Inicie la instalacion del PostgreSQL 7.3.10 como dice
el install:

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D
/usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

Pero al llegar a la penultima linea me sale:
[postgres@C41-13 postgres]$
/usr/local/pgsql/bin/createdb test
psql: could not connect to server: No existe el
fichero o el directorio
Is the server running locally and accepting
connections on Unix domain socket
"/tmp/.s.PGSQL.5432"?
createdb: database creation failed

Que es lo que debo hacer?
TanX



		
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: AYUDA CON LA INSTALACION DEL POSTGRESQL
  2005-06-12 20:56 AYUDA CON LA INSTALACION DEL POSTGRESQL Steph Frias <lero999@yahoo.com>
@ 2005-06-20 04:37 ` Nahum Castro <nahumcastro@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Nahum Castro @ 2005-06-20 04:37 UTC (permalink / raw)
  To: Steph Frias <lero999@yahoo.com>; +Cc: pgsql-sql

2005/6/12, Steph Frias <lero999@yahoo.com>:
> 
> 
> Inicie la instalacion del PostgreSQL 7.3.10 como dice
> el install:
> 
> ./configure
> gmake
> su
> gmake install
> adduser postgres
> mkdir /usr/local/pgsql/data
> chown postgres /usr/local/pgsql/data
> su - postgres
> /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
> /usr/local/pgsql/bin/postmaster -D
> /usr/local/pgsql/data >logfile 2>&1 &
> /usr/local/pgsql/bin/createdb test
> /usr/local/pgsql/bin/psql test
Verifica que hayas arrancado el postgres.
arranca mejor con pg_ctl start  para arrancar o stop para parar
Solamente existe el usuario postgres y si sigues como root no te va a
dejar hacer nada.

ahi te va el procedimiento:
# comando como root
$ comando como postgres

$ tar xvzf postgresql.tar.gz
$ cd postgresql
$ ./configure --enable-nls='es' --with-perl
$ gmake
# gmake install
# adduser postgres
# passwd postgres
$ cd
$ mkdir datos
$ /usr/local/pgsql/bin/initdb -E UNICODE -D /home/postgres/datos
$ export PG_DATA=/home/postgres/datos
$ PATH=$PATH:/usr/local/pgsql/bin
$ pg_ctl start
$ createuser -P nombredetuusuariounix
$ createlang plpgsql template1
$ su - nombredetuusuariounix
$ createdb prueba
$ psql prueba
..............


> Pero al llegar a la penultima linea me sale:
> [postgres@C41-13 postgres]$
> /usr/local/pgsql/bin/createdb test
> psql: could not connect to server: No existe el
> fichero o el directorio
> Is the server running locally and accepting
> connections on Unix domain socket
> "/tmp/.s.PGSQL.5432"?
> createdb: database creation failed
> 
> Que es lo que debo hacer?
> TanX

Suscribete mejor a la lista en español, que esta en la misma página
donde te inscribiste a esta lista.

Saludos. 


-- 
Nahum Castro González
León, Guanajuato, México



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-06-20 04:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-12 20:56 AYUDA CON LA INSTALACION DEL POSTGRESQL Steph Frias <lero999@yahoo.com>
2005-06-20 04:37 ` Nahum Castro <nahumcastro@gmail.com>

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