problems running psql

Started by Marcosalmost 26 years ago1 messagesgeneral
Jump to latest
#1Marcos
marcos@second.ival.es

[marcos@patanegra bin]$ psql template
Connection to database 'template' failed.
connectDB() failed: Is the postmaster running and accepting connections
at 'UNIX Socket' on port '5432'?

this is what i get. if i do it from root or postgres user it gets the
same.

i do not why but the database server does not start as i restart the
computer. i put this line in the /etc/inittab file.

pg:2345:respawn:/bin/su - postgres -c
"/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >>
/usr/local/pgsql/server.log 2>&1 < /dev/null"

if i do a ps aux | grep postgres or ps aux | grep postmaster i see
nothing.

.....

i am running psql from the computer and also from a telnet session from
other computer.

-......

i have not changed the file pg_hba.conf.. i do not know what to change

thanks in advance,

marcos
marcos@ival.es