pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nahum Castro <nahumcastro@gmail.com>
To: Steph Frias <lero999@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: AYUDA CON LA INSTALACION DEL POSTGRESQL
Date: Sun, 19 Jun 2005 23:37:58 -0500
Message-ID: <714bb51a050619213769e62b19@mail.gmail.com> (raw)
In-Reply-To: <20050612205624.40132.qmail@web41014.mail.yahoo.com>
References: <20050612205624.40132.qmail@web41014.mail.yahoo.com>

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



view thread (2+ messages)

Message-ID: <714bb51a050619213769e62b19@mail.gmail.com>
Permalink:  ../714bb51a050619213769e62b19@mail.gmail.com/
Also on:    postgresql.org/message-id/714bb51a050619213769e62b19@mail.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-sql@postgresql.org
  Cc: nahumcastro@gmail.com, lero999@yahoo.com
  Subject: Re: AYUDA CON LA INSTALACION DEL POSTGRESQL
  In-Reply-To: <714bb51a050619213769e62b19@mail.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