Johnny
2011-01-23 01:23:40 UTC
Hello
I tried setting up the postgresql exactly as it says on the A0
specification.
Everything worked fine until when I tried running the
bash-3.00$ postmaster -p 1234 -D $HOME/pgdb
LOG: database system was shut down at 2011-01-22 20:04:20 EST
LOG: checkpoint record is at 0/390098
LOG: redo record is at 0/390098; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 565; next OID: 10794
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system is ready
LOG: transaction ID wrap limit is 2147484146, limited by database
"postgres"
this part worked fine, but when I tried the next step on another window
bash-3.00$ createdb -p 1234 mytest
createdb: could not connect to database postgres: could not connect to
server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.1234"?
I tried this with many different port numbers, but the result was still the
same.
Can you please help me fix this?
Johnny
I tried setting up the postgresql exactly as it says on the A0
specification.
Everything worked fine until when I tried running the
bash-3.00$ postmaster -p 1234 -D $HOME/pgdb
LOG: database system was shut down at 2011-01-22 20:04:20 EST
LOG: checkpoint record is at 0/390098
LOG: redo record is at 0/390098; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 565; next OID: 10794
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system is ready
LOG: transaction ID wrap limit is 2147484146, limited by database
"postgres"
this part worked fine, but when I tried the next step on another window
bash-3.00$ createdb -p 1234 mytest
createdb: could not connect to database postgres: could not connect to
server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.1234"?
I tried this with many different port numbers, but the result was still the
same.
Can you please help me fix this?
Johnny