How did I install it?
Code:
sudo apt-get install postgresql-common postgresql-8.2
Do I have the postgres user on my system?
Yes. It was created as soon as postgresql-8.2 was installed. Here is the entry from /etc/passwd:
Code:
postgres:x:105:113:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
Running:
Code:
sudo /etc/init.d/postgresql-8.2 start
Still does not start the postgresql server.
How am I checking? By using:
Code:
ps aux | grep postgresql
I copied the /etc/postgresql/8.2/main/ directory (and contents) from my previous working state, to this system, so I thought I could keep the settings.
netstat does not show postgresql running either.
Running:
Logs me in as the postgres user. Then, running:
Code:
createdb test; psql test
Outputs to:
Code:
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.5432"?
psql: 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.5432"?
Also, on a sidenote, every command that you mentioned, windependence, did not work. Maybe I am still missing something that I should have installed. I don't know.
Dr Small
Bookmarks