Обсуждение: AYUDA CON LA INSTALACION DEL POSTGRESQL

Поиск
Список
Период
Сортировка

AYUDA CON LA INSTALACION DEL POSTGRESQL

От
Steph Frias
Дата:

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 



Re: AYUDA CON LA INSTALACION DEL POSTGRESQL

От
Nahum Castro
Дата:
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